aboutsummaryrefslogtreecommitdiff
path: root/net/dictd
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-09-19 14:01:08 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-09-19 14:01:08 +0000
commita099d9725b4217243af848a1fc2625e4cac8b271 (patch)
tree15b1a62aa72560de137d90cbf0333c5dc88f8e0e /net/dictd
parent3df6bfa470416ddb50c93f7bae6e3241fa204c1f (diff)
downloadports-a099d9725b4217243af848a1fc2625e4cac8b271.tar.gz
ports-a099d9725b4217243af848a1fc2625e4cac8b271.zip
- Switch to USES=libtool:build
- Use @sample
Notes
Notes: svn path=/head/; revision=368563
Diffstat (limited to 'net/dictd')
-rw-r--r--net/dictd/Makefile7
-rw-r--r--net/dictd/pkg-plist4
2 files changed, 4 insertions, 7 deletions
diff --git a/net/dictd/Makefile b/net/dictd/Makefile
index 1f566d690209..d4fef4460dcc 100644
--- a/net/dictd/Makefile
+++ b/net/dictd/Makefile
@@ -14,13 +14,12 @@ LICENSE= GPLv2
LIB_DEPENDS= libmaa.so:${PORTSDIR}/devel/libmaa
USE_RC_SUBR= ${PORTNAME}
-USES= bison libtool gmake
-USE_AUTOTOOLS= libtoolize
+USES= bison gmake libtool:build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--without-local-zlib
CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+LIBS+= -L${LOCALBASE}/lib
SUB_FILES+= dictd.conf pkg-message
SUB_LIST+= PORTSDIR=${PORTSDIR}
@@ -35,6 +34,6 @@ post-patch:
@${REINPLACE_CMD} -e "s|\([\ \t(]\)T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
- @${CP} ${WRKDIR}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+ @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>
diff --git a/net/dictd/pkg-plist b/net/dictd/pkg-plist
index baaf440ae912..8a07725ba8fd 100644
--- a/net/dictd/pkg-plist
+++ b/net/dictd/pkg-plist
@@ -1,7 +1,5 @@
bin/dictzip
+@sample etc/dictd.conf.sample
man/man1/dictzip.1.gz
man/man8/dictd.8.gz
sbin/dictd
-@unexec if cmp -s %D/etc/dictd.conf %D/etc/dictd.conf.sample; then rm -f %D/etc/dictd.conf; fi
-etc/dictd.conf.sample
-@exec [ -f %B/dictd.conf ] || cp %B/%f %B/dictd.conf