Cleanup plist

Allow packaging as a user
This commit is contained in:
Baptiste Daroussin 2014-10-07 17:49:05 +00:00
parent e5c1e6ef70
commit b15bd6d9f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370379
2 changed files with 8 additions and 21 deletions

View file

@ -5,26 +5,28 @@ PORTNAME= pwhois
PORTVERSION= 2.2.0.1
CATEGORIES= net
MASTER_SITES= http://pwhois.org/get/ \
http://mirrors.rit.edu/zi/
http://mirrors.rit.edu/zi/
EXTRACT_SUFX= .tgz
MAINTAINER= zi@FreeBSD.org
COMMENT= Whois-compatible framework for disclosing routing data
RUN_DEPENDS= p5-DBI>0:${PORTSDIR}/databases/p5-DBI \
p5-Time-Format>0:${PORTSDIR}/devel/p5-Time-Format \
p5-Time-Format>0:${PORTSDIR}/devel/p5-Time-Format \
p5-Log-Dispatch>0:${PORTSDIR}/devel/p5-Log-Dispatch \
p5-Net-DNS>0:${PORTSDIR}/dns/p5-Net-DNS \
p5-Net-Telnet>0:${PORTSDIR}/net/p5-Net-Telnet \
p5-Net-CIDR>0:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
p5-RPSL-Parser>0:${PORTSDIR}/devel/p5-RPSL-Parser \
p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
FETCH_ARGS= -p
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
USES= shebangfix tar:tgz
SHEBANG_FILES= pwhois-updatedb
USE_MYSQL= client
USE_RC_SUBR= ${PORTNAME}d
SUB_FILES= pkg-message 512.pwhois-updatedb
@ -55,7 +57,5 @@ do-install:
post-install:
@${MKDIR} ${STAGEDIR}/var/db/pwhois ${STAGEDIR}/var/log/pwhois
@${CHOWN} 512:512 ${STAGEDIR}/var/db/pwhois ${STAGEDIR}/var/log/pwhois
#@${CHOWN} ${USERS}:${GROUPS} ${STAGEDIR}/var/db/pwhois ${STAGEDIR}/var/log/pwhois
.include <bsd.port.mk>

View file

@ -1,20 +1,7 @@
etc/periodic/daily/512.pwhois-updatedb
sbin/pwhois-updatedb
sbin/pwhoisd
@group pwhois
@mode 640
@unexec if cmp -s %D/etc/pwhois/pwhoisd.conf %D/etc/pwhois/pwhoisd.conf.sample ; then rm -f %D/etc/pwhois/pwhoisd.conf ; fi
%%ETCDIR%%/pwhoisd.conf.sample
@exec if [ ! -f %D/etc/pwhois/pwhoisd.conf ]; then cp -p %D/%F %B/pwhoisd.conf; fi
@group wheel
@mode
@sample(,pwhois,640) %%ETCDIR%%/pwhoisd.conf.sample
%%DATADIR%%/createdb.sql
@dirrm %%DATADIR%%
@dirrmtry %%ETCDIR%%
@dirrmtry etc/periodic/daily
@dirrmtry etc/periodic
@cwd /
@dirrmtry var/db/pwhois
@dirrmtry var/log/pwhois
@unexec if [ -d var/db/pwhois ]; then echo "You should remove /var/db/pwhois if you don't need it any more."; fi
@unexec if [ -d var/log/pwhois ]; then echo "You should remove /var/log/pwhois if you don't need it any more."; fi
@dir(pwhois,pwhois,) /var/db/pwhois
@dir(pwhois,pwhois,) /var/log/pwhois