summaryrefslogtreecommitdiff
path: root/net/sendfile/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/sendfile/Makefile')
-rw-r--r--net/sendfile/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/net/sendfile/Makefile b/net/sendfile/Makefile
index 4b0c0db2dec..41f6d8311bf 100644
--- a/net/sendfile/Makefile
+++ b/net/sendfile/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2002/10/17 19:18:01 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2003/05/01 15:44:43 jmmv Exp $
#
DISTNAME= sendfile-20010216
PKGNAME= sendfile-2.1.0.2
+PKGREVISION= 1
WRKSRC= ${WRKDIR}/sendfile-2.1a
CATEGORIES= net
MASTER_SITES= ftp://ftp.belwue.de/pub/unix/sendfile/current/
@@ -11,9 +12,18 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.belwue.de/aktivitaeten/projekte/saft/
COMMENT= Implementation of the Simple asynchronous file transfer protocol
-post-patch:
+USE_BUILDLINK2= yes
+USE_PKGINSTALL= yes
+
+EGDIR= ${PREFIX}/share/examples/sendfile
+CONF_FILES= ${EGDIR}/sendfile.cf ${PKG_SYSCONFDIR}/sendfile.cf
+CONF_FILES+= ${EGDIR}/sendfile.deny ${PKG_SYSCONFDIR}/sendfile.deny
+
+pre-configure:
cd ${WRKSRC} && \
- ${SED} -e 's,@PREFIX@,${PREFIX},' < makeconfig > makeconfig.new; \
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' \
+ -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' \
+ < makeconfig > makeconfig.new; \
${MV} makeconfig.new makeconfig; \
${CHMOD} +x makeconfig