aboutsummaryrefslogtreecommitdiffstats
path: root/net/csocks/Makefile
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2008-02-21 17:00:12 +0800
committersem <sem@FreeBSD.org>2008-02-21 17:00:12 +0800
commitf9fb6d94ea4aeec0bc88b9de54c72b2584dba60c (patch)
tree958dc1c8eb5ac4f2897aa6def6e6f6aa46310d8e /net/csocks/Makefile
parent7c47f7f4784836260afd8301109d860645181fbb (diff)
downloadfreebsd-ports-gnome-f9fb6d94ea4aeec0bc88b9de54c72b2584dba60c.tar.gz
freebsd-ports-gnome-f9fb6d94ea4aeec0bc88b9de54c72b2584dba60c.tar.zst
freebsd-ports-gnome-f9fb6d94ea4aeec0bc88b9de54c72b2584dba60c.zip
- Update to 1.5
* Switch from binaries to source code. * Install csocks.conf.sample instead of csocks.conf. It prevents users from lost they configs. * Add an experimental IPv6 support. PR: ports/120866 Submitted by: maintainer
Diffstat (limited to 'net/csocks/Makefile')
-rw-r--r--net/csocks/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/net/csocks/Makefile b/net/csocks/Makefile
index b31918b28393..75f640b34353 100644
--- a/net/csocks/Makefile
+++ b/net/csocks/Makefile
@@ -4,7 +4,7 @@
# $FreeBSD$
PORTNAME= csocks
-PORTVERSION= 1.1
+PORTVERSION= 1.5
CATEGORIES= net security
MASTER_SITES= http://csocks.altervista.org/download/ \
http://csocks.virtuale.org/download/
@@ -15,20 +15,22 @@ COMMENT= SOCKS Client v4/v5 RFC Compliant with many features
ONLY_FOR_ARCHS= i386
-PLIST_FILES= etc/csocks.conf lib/libcsocks.so lib/libcsocks.so.1 bin/csocks
+PLIST_FILES= etc/csocks.conf.sample lib/libcsocks.so lib/libcsocks.so.1 bin/csocks
-NO_BUILD= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}
+WRKSRC= ${WRKDIR}/src
USE_LDCONFIG= yes
MAN1= csocks.1
MAN5= csocks.conf.5
MANCOMPRESSED= yes
+post-patch:
+ ${REINPLACE_CMD} "s#/usr/local#${PREFIX}#" ${WRKDIR}/src/Makefile
+
do-install:
- ${CP} -p ${WRKDIR}/${DISTNAME}/freebsd/libcsocks.so.1 ${PREFIX}/lib/
+ ${CP} -p ${WRKDIR}/src/libcsocks.so.1 ${PREFIX}/lib/
${LN} -fs ${PREFIX}/lib/libcsocks.so.1 ${PREFIX}/lib/libcsocks.so
- ${CP} -p ${WRKDIR}/${DISTNAME}/freebsd/csocks ${PREFIX}/bin
- ${CP} -p ${WRKDIR}/${DISTNAME}/freebsd/csocks.conf ${PREFIX}/etc/
- ${CP} -p ${WRKDIR}/${DISTNAME}/man/csocks.1.gz ${MANPREFIX}/man/man1
- ${CP} -p ${WRKDIR}/${DISTNAME}/man/csocks.conf.5.gz ${MANPREFIX}/man/man5
+ ${CP} -p ${WRKDIR}/freebsd/csocks ${PREFIX}/bin
+ ${CP} -p ${WRKDIR}/csocks.conf ${PREFIX}/etc/csocks.conf.sample
+ ${CP} -p ${WRKDIR}/man/csocks.1.gz ${MANPREFIX}/man/man1
+ ${CP} -p ${WRKDIR}/man/csocks.conf.5.gz ${MANPREFIX}/man/man5
.include <bsd.port.mk>