aboutsummaryrefslogtreecommitdiffstats
path: root/net/dante
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-10-29 06:30:54 +0800
committerfjoe <fjoe@FreeBSD.org>2003-10-29 06:30:54 +0800
commitb8d5fc5fee74fc3eb0a04fdfd52c93c3f749c4ca (patch)
tree3e8d7b951d654281dbd06f51199ab2a67382bebd /net/dante
parenta56eda324d65d24a8914a075a4f1be2b2936c0ea (diff)
downloadfreebsd-ports-gnome-b8d5fc5fee74fc3eb0a04fdfd52c93c3f749c4ca.tar.gz
freebsd-ports-gnome-b8d5fc5fee74fc3eb0a04fdfd52c93c3f749c4ca.tar.zst
freebsd-ports-gnome-b8d5fc5fee74fc3eb0a04fdfd52c93c3f749c4ca.zip
- Add startup script.
- Utilize DOCSDIR. - Bump PORTREVISION. Approved by: anders (MAINTAINER)
Diffstat (limited to 'net/dante')
-rw-r--r--net/dante/Makefile12
-rw-r--r--net/dante/files/sockd.sh15
-rw-r--r--net/dante/pkg-plist19
3 files changed, 32 insertions, 14 deletions
diff --git a/net/dante/Makefile b/net/dante/Makefile
index cef4e60b77c4..05ce781b1a8d 100644
--- a/net/dante/Makefile
+++ b/net/dante/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dante
PORTVERSION= 1.1.13
+PORTREVISION= 1
CATEGORIES= net security
MASTER_SITES= ftp://ftp.inet.no/pub/socks/ \
ftp://ftp.nuug.no/pub/anders/distfiles/ \
@@ -27,12 +28,13 @@ MAN8= sockd.8
post-install:
@${INSTALL_DATA} ${WRKSRC}/example/socks.conf ${PREFIX}/etc/socks.conf.example
@${INSTALL_DATA} ${WRKSRC}/example/sockd.conf ${PREFIX}/etc/sockd.conf.example
+ @${INSTALL_SCRIPT} ${FILESDIR}/sockd.sh ${PREFIX}/etc/rc.d/sockd.sh-dist
.if !defined(NOPORTDOCS)
- ${INSTALL} -d -m 555 ${PREFIX}/share/doc/dante
- @${INSTALL_DATA} ${WRKSRC}/doc/README* ${PREFIX}/share/doc/dante
- @${INSTALL_DATA} ${WRKSRC}/doc/rfc* ${PREFIX}/share/doc/dante
- @${INSTALL_DATA} ${WRKSRC}/doc/SOCKS4.protocol ${PREFIX}/share/doc/dante
- @${INSTALL_DATA} ${WRKSRC}/doc/faq.tex ${PREFIX}/share/doc/dante
+ ${INSTALL} -d -m 555 ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/README* ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/rfc* ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/SOCKS4.protocol ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/faq.tex ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/net/dante/files/sockd.sh b/net/dante/files/sockd.sh
new file mode 100644
index 000000000000..34653ae14bf7
--- /dev/null
+++ b/net/dante/files/sockd.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+case "$1" in
+start)
+ [ -x /usr/local/sbin/sockd ] && /usr/local/sbin/sockd -D > /dev/null && echo -n ' sockd'
+ ;;
+stop)
+ [ -r /var/run/sockd.pid ] && kill `cat /var/run/sockd.pid` && echo -n ' sockd'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/net/dante/pkg-plist b/net/dante/pkg-plist
index 626dda3db177..4eeaf24b7b27 100644
--- a/net/dante/pkg-plist
+++ b/net/dante/pkg-plist
@@ -1,6 +1,7 @@
bin/socksify
etc/sockd.conf.example
etc/socks.conf.example
+etc/rc.d/sockd.sh-dist
include/socks.h
lib/libdsocks.la
lib/libdsocks.so
@@ -10,12 +11,12 @@ lib/libsocks.la
lib/libsocks.so
lib/libsocks.so.1
sbin/sockd
-%%PORTDOCS%%share/doc/dante/README.msproxy
-%%PORTDOCS%%share/doc/dante/README.socksify
-%%PORTDOCS%%share/doc/dante/README.survey
-%%PORTDOCS%%share/doc/dante/README.usage
-%%PORTDOCS%%share/doc/dante/SOCKS4.protocol
-%%PORTDOCS%%share/doc/dante/rfc1928.txt
-%%PORTDOCS%%share/doc/dante/rfc1929.txt
-%%PORTDOCS%%share/doc/dante/faq.tex
-%%PORTDOCS%%@dirrm share/doc/dante
+%%PORTDOCS%%%%DOCSDIR%%/README.msproxy
+%%PORTDOCS%%%%DOCSDIR%%/README.socksify
+%%PORTDOCS%%%%DOCSDIR%%/README.survey
+%%PORTDOCS%%%%DOCSDIR%%/README.usage
+%%PORTDOCS%%%%DOCSDIR%%/SOCKS4.protocol
+%%PORTDOCS%%%%DOCSDIR%%/rfc1928.txt
+%%PORTDOCS%%%%DOCSDIR%%/rfc1929.txt
+%%PORTDOCS%%%%DOCSDIR%%/faq.tex
+%%PORTDOCS%%@dirrm %%DOCSDIR%%