summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-05-01 18:05:26 +0000
committerjmmv <jmmv>2003-05-01 18:05:26 +0000
commit87d946657f85b587720457a551a9d06f19005bfc (patch)
treea94119fb90c4ecdfee26cbda9ce45af9e84cc2f5
parentee983820ddb2fe8604342fdc8b3e4840ec7a91af (diff)
downloadpkgsrc-87d946657f85b587720457a551a9d06f19005bfc.tar.gz
Avoid defining specific do-build and do-install targets. Use buildlink2.
-rw-r--r--net/radiusd-cistron/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/net/radiusd-cistron/Makefile b/net/radiusd-cistron/Makefile
index bc4b2b529e0..9f9cfb61563 100644
--- a/net/radiusd-cistron/Makefile
+++ b/net/radiusd-cistron/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2003/02/27 20:36:28 darcy Exp $
+# $NetBSD: Makefile,v 1.7 2003/05/01 18:05:26 jmmv Exp $
DISTNAME= radiusd-cistron-1.6.6
CATEGORIES= net
@@ -9,15 +9,15 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.radius.cistron.nl/
COMMENT= RADIUS-compliant remote authentication and accouting server
-MAKEFILE= Makefile.BSD
+CONFLICTS+= freeradius*
-CONFLICTS+= freeradius*
+USE_BUILDLINK2= YES
-do-build:
- cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE}
+MAKEFILE= Makefile.BSD
+BUILD_DIRS= ${WRKSRC}/src
+INSTALL_DIRS= ${WRKSRC}/src
-do-install:
- cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} install
+post-install:
@${MKDIR} -m 700 /var/log/radacct
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radiusd-cistron
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/radiusd-cistron
@@ -43,8 +43,6 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/radrelay.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/radwatch.8 ${PREFIX}/man/man8
-
-post-install:
@${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \
> ${PREFIX}/etc/rc.d/radiusd
@${CHMOD} 555 ${PREFIX}/etc/rc.d/radiusd