From c10c558549c10dfc064f271cae5290a126a0869d Mon Sep 17 00:00:00 2001 From: Rob4226 Date: Wed, 26 May 2021 06:35:16 -0400 Subject: [PATCH] fix port category from editors to www Per review comment, changing port category from editors to www bc in fact it really is an application server. --- .gitignore | 1 + Makefile | 2 +- README.md | 12 +++++++----- code-server.diff | 35 ++++++++++++++++------------------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index e69de29..360288a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +*.txz \ No newline at end of file diff --git a/Makefile b/Makefile index 6ad40df..881eb8f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PORTNAME= code-server DISTVERSION= 3.10.2 -CATEGORIES= editors +CATEGORIES= www MASTER_SITES= https://registry.npmjs.org/code-server/-/ MAINTAINER= FreeBSD@appkingsoftware.com diff --git a/README.md b/README.md index 7fba982..cb3f433 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# FreeBSD Port for code-server https://github.com/cdr/code-server +# FreeBSD Port for code-server + +[https://github.com/cdr/code-server][1] ## Run VS Code on any machine anywhere and access it in the browser @@ -6,9 +8,7 @@ > Submitted to be added to the FreeBSD Ports Tree on 5/25/2021: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256144 -## **editors/code-server** - -
+## **www/code-server** ### **Install** @@ -21,7 +21,7 @@ pkg install code-server **Or using ports:** ```sh -cd /usr/ports/editors/code-server +cd /usr/ports/www/code-server make install clean ``` @@ -67,3 +67,5 @@ Other available variables to use in in `/etc/rc.conf` when using as a service: IP address, port, and more can be set in `config.yaml` See `cdr/code-server` repo for docs: https://github.com/cdr/code-server + +[1]: https://github.com/cdr/code-server diff --git a/code-server.diff b/code-server.diff index 01505a4..d2e1170 100644 --- a/code-server.diff +++ b/code-server.diff @@ -1,14 +1,12 @@ -diff --git a/editors/code-server/Makefile b/editors/code-server/Makefile +diff --git a/www/code-server/Makefile b/www/code-server/Makefile new file mode 100644 -index 000000000000..2a5f1623f3b4 +index 000000000000..881eb8f602eb --- /dev/null -+++ b/editors/code-server/Makefile -@@ -0,0 +1,61 @@ -+# $FreeBSD$ -+ ++++ b/www/code-server/Makefile +@@ -0,0 +1,59 @@ +PORTNAME= code-server +DISTVERSION= 3.10.2 -+CATEGORIES= editors ++CATEGORIES= www +MASTER_SITES= https://registry.npmjs.org/code-server/-/ + +MAINTAINER= FreeBSD@appkingsoftware.com @@ -65,25 +63,23 @@ index 000000000000..2a5f1623f3b4 + ${RLN} ${STAGEDIR}${DATADIR}/out/node/entry.js ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include -diff --git a/editors/code-server/distinfo b/editors/code-server/distinfo +diff --git a/www/code-server/distinfo b/www/code-server/distinfo new file mode 100644 index 000000000000..ddd93c3007b0 --- /dev/null -+++ b/editors/code-server/distinfo ++++ b/www/code-server/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621872897 +SHA256 (code-server-3.10.2.tgz) = 357e0248fd8d9ca687776d3f688b30e7b2e5a873443557c6ee2d4a858fa5c247 +SIZE (code-server-3.10.2.tgz) = 25745056 -diff --git a/editors/code-server/files/code-server.in b/editors/code-server/files/code-server.in +diff --git a/www/code-server/files/code-server.in b/www/code-server/files/code-server.in new file mode 100644 -index 000000000000..3b3b8c3bfc37 +index 000000000000..9d26898ebdc5 --- /dev/null -+++ b/editors/code-server/files/code-server.in -@@ -0,0 +1,73 @@ ++++ b/www/code-server/files/code-server.in +@@ -0,0 +1,72 @@ +#!/bin/sh + -+# $FreeBSD$ -+# +# PROVIDE: code_server +# REQUIRE: LOGIN NETWORKING DAEMON +# KEYWORD: shutdown @@ -120,6 +116,7 @@ index 000000000000..3b3b8c3bfc37 +. /etc/rc.subr + +name=code_server ++desc="VS Code code-server" +rcvar=code_server_enable + +load_rc_config $name @@ -153,11 +150,11 @@ index 000000000000..3b3b8c3bfc37 +} + +run_rc_command "$1" -diff --git a/editors/code-server/pkg-descr b/editors/code-server/pkg-descr +diff --git a/www/code-server/pkg-descr b/www/code-server/pkg-descr new file mode 100644 index 000000000000..28070b1919c5 --- /dev/null -+++ b/editors/code-server/pkg-descr ++++ b/www/code-server/pkg-descr @@ -0,0 +1,8 @@ +This is a port of code-server which allows you to run VS Code on any machine +anywhere and access it in the browser. Code-server takes the open source core @@ -167,11 +164,11 @@ index 000000000000..28070b1919c5 +script to allow for easy control as a service and start on boot. + +WWW: https://github.com/cdr/code-server/ -diff --git a/editors/code-server/pkg-plist b/editors/code-server/pkg-plist +diff --git a/www/code-server/pkg-plist b/www/code-server/pkg-plist new file mode 100644 index 000000000000..9f5fdbb14025 --- /dev/null -+++ b/editors/code-server/pkg-plist ++++ b/www/code-server/pkg-plist @@ -0,0 +1,4931 @@ +bin/code-server +%%DATADIR%%/LICENSE.txt