summaryrefslogtreecommitdiff
path: root/net/socks5
diff options
context:
space:
mode:
authorgrant <grant>2002-10-02 13:27:11 +0000
committergrant <grant>2002-10-02 13:27:11 +0000
commit16f6e4da3bbbd0d14b8ef05f8f737e67412416a0 (patch)
tree04ecf19ac8c920762accab369fff4714a2b12f84 /net/socks5
parent992479f14d815eeb7b03329cde1a8af7cc609462 (diff)
downloadpkgsrc-16f6e4da3bbbd0d14b8ef05f8f737e67412416a0.tar.gz
add rc script and use bsd.pkg.install.mk.
bump PKGREVISION.
Diffstat (limited to 'net/socks5')
-rw-r--r--net/socks5/Makefile6
-rw-r--r--net/socks5/PLIST3
-rw-r--r--net/socks5/files/socks5.sh15
3 files changed, 22 insertions, 2 deletions
diff --git a/net/socks5/Makefile b/net/socks5/Makefile
index e2735bb1c31..0fa3376e526 100644
--- a/net/socks5/Makefile
+++ b/net/socks5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2002/08/25 18:39:37 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2002/10/02 13:27:11 grant Exp $
# FreeBSD Id: Makefile,v 1.14 1997/08/28 06:49:06 obrien Exp
#
@@ -6,6 +6,7 @@ DISTNAME= socks5-v1_0r2
PKGNAME= socks5-1.0.2
WRKSRC= ${WRKDIR}/socks5-v1.0r2
CATEGORIES= net security
+PKGREVISION= 1
MASTER_SITES= # empty -- manual fetch needed
EXTRACT_SUFX= _tar.gz
@@ -36,9 +37,12 @@ CONFIGURE_ARGS= --with-libconffile=${PREFIX}/etc/libsocks5.conf \
${EXTRA_CONFIGURE_ARGS}
LIBS+= -lcrypt
+RCD_SCRIPTS= socks5
+
post-install:
${MV} ${PREFIX}/lib/libsocks5_sh.so ${PREFIX}/lib/libsocks5_sh.so.0.0
${LN} -sf libsocks5_sh.so.0.0 ${PREFIX}/lib/libsocks5_sh.so.0
${LN} -sf libsocks5_sh.so.0.0 ${PREFIX}/lib/libsocks5_sh.so
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/socks5/PLIST b/net/socks5/PLIST
index 0a56dea5175..ce061dba14e 100644
--- a/net/socks5/PLIST
+++ b/net/socks5/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:59:04 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/10/02 13:27:12 grant Exp $
bin/socks5
bin/runsocks
bin/stopsocks
@@ -9,6 +9,7 @@ bin/rping
bin/rtelnet
bin/rtraceroute
bin/rwhois
+etc/rc.d/socks5
include/socks.h
man/man1/socks5.1.gz
man/man1/runsocks.1.gz
diff --git a/net/socks5/files/socks5.sh b/net/socks5/files/socks5.sh
new file mode 100644
index 00000000000..55d9acd8f51
--- /dev/null
+++ b/net/socks5/files/socks5.sh
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: socks5.sh,v 1.1 2002/10/02 13:27:14 grant Exp $
+#
+# PROVIDE: socks5
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="socks5"
+command="@PREFIX@/bin/${name}"
+required_files="@PKG_SYSCONFDIR@/socks5.conf"
+
+load_rc_config $name
+run_rc_command "$1"