Skip to content

Commit

Permalink
fix port category from editors to www
Browse files Browse the repository at this point in the history
Per review comment, changing port category from editors to www bc
in fact it really is an application server.
  • Loading branch information
rob4226 committed May 26, 2021
1 parent b4a4f28 commit c10c558
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.txz
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= code-server
DISTVERSION= 3.10.2
CATEGORIES= editors
CATEGORIES= www
MASTER_SITES= https://registry.npmjs.org/code-server/-/

MAINTAINER= [email protected]
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 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

</br>

> 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**

</br>
## **www/code-server**

### **Install**

Expand All @@ -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
```

Expand Down Expand Up @@ -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
35 changes: 16 additions & 19 deletions code-server.diff
Original file line number Diff line number Diff line change
@@ -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= [email protected]
Expand Down Expand Up @@ -65,25 +63,23 @@ index 000000000000..2a5f1623f3b4
+ ${RLN} ${STAGEDIR}${DATADIR}/out/node/entry.js ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c10c558

Please sign in to comment.