openbsd-ports/net/radiusd-cistron/Makefile
jasper 4fee5ffce0 Sanitize some @unexec/@extraunexec calls to rm: move them up in the
PLIST and delete everything under the @sample'd directory instead of the
directory itself to prevent a warning from pkg_delete(1) trying to
remove a non existing directory and to help preventing left-over files
and directories.

ok aja@
2011-05-11 12:03:19 +00:00

55 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2011/05/11 12:03:19 jasper Exp $
COMMENT= Cistron RADIUS server
VERSION= 1.6.7
DISTNAME= radiusd-cistron-${VERSION}
REVISION= 3
CATEGORIES= net
MASTER_SITES= ftp://ftp.radius.cistron.nl/pub/radius/ \
ftp://ftp.freeradius.org/pub/radius/ \
ftp://ftp.mma.com.br/pub/cistron-radius/
HOMEPAGE= http://www.radius.cistron.nl/
RUN_DEPENDS= net/p5-Net-Telnet \
net/p5-SNMP_Session
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
WRKSRC= ${WRKDIST}/src
MAKE_FILE= Makefile.BSD
MAKE_FLAGS+= CC="${CC}" LCRYPT="" DBM="-DUSE_DB1" DBMLIBS="" \
CFLAGS="${CFLAGS} -DNOSHADOW -DUSE_SYSLOG -fno-builtin-log"
FAKE_FLAGS+= BINDIR='${WRKINST}${PREFIX}/bin' \
SBINDIR='${WRKINST}${PREFIX}/sbin' \
MANDIR='${WRKINST}${PREFIX}/man' \
RADIUS_DIR='${WRKINST}${PREFIX}/share/examples/radiusd-cistron'
USE_GROFF = Yes
NO_REGRESS= Yes
post-install:
${INSTALL_MAN} ${WRKDIST}/doc/clients.5rad ${PREFIX}/man/man5/clients.5
${INSTALL_MAN} ${WRKDIST}/doc/naslist.5rad ${PREFIX}/man/man5/naslist.5
${INSTALL_MAN} ${WRKDIST}/doc/builddbm.8rad \
${PREFIX}/man/man8/builddbm.8
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radiusd-cistron
@for file in ${WRKDIST}/doc/README* ; do \
${INSTALL_DATA} $$file ${PREFIX}/share/doc/radiusd-cistron; \
done
@perl -pi -e "s#[ ]SHAREDIR# ${SYSCONFDIR}/raddb#g" \
${WRKDIST}/raddb/dictionary
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/radiusd-cistron
@for file in ${WRKDIST}/raddb/* ; do \
${INSTALL_DATA} $$file \
${PREFIX}/share/examples/radiusd-cistron; \
done
.include <bsd.port.mk>