mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# Created by: Michael Lednev <liettneff@bk.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= abills
|
|
PORTVERSION= 0.54
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Billing system for dialup, VPN, and VoIP management
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= radiusd:${PORTSDIR}/net/freeradius2 \
|
|
p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
|
|
p5-Digest-MD4>=0:${PORTSDIR}/security/p5-Digest-MD4 \
|
|
p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
|
|
p5-Crypt-DES>=0:${PORTSDIR}/security/p5-Crypt-DES
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
NO_BUILD= yes
|
|
|
|
USES= perl5
|
|
USE_PERL5= run
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
NO_STAGE= yes
|
|
post-patch:
|
|
@${GREP} -lR "/usr/abills" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|/usr/abills|${PREFIX}/abills|g'
|
|
@${GREP} -lR "/usr/bin/perl" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|/usr/bin/perl|${PERL}|g'
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/abills
|
|
@(${TAR} -C ${WRKSRC} --exclude "*.DS*" --exclude "*.bak" \
|
|
--exclude "*.orig" -cf - . | ${TAR} -C ${PREFIX}/abills \
|
|
--unlink -xf -)
|
|
@${FIND} ${PREFIX}/abills | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
@${FIND} ${PREFIX}/abills/cgi-bin | ${XARGS} ${CHOWN} www
|
|
@${FIND} ${PREFIX}/abills -type d | ${XARGS} ${CHMOD} a+rx
|
|
@${FIND} ${PREFIX}/abills -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|