1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Add staging support

This commit is contained in:
Pawel Pekala 2014-08-04 17:12:28 +00:00
parent 1a76018a0b
commit fecf199f91
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364027
2 changed files with 9 additions and 10 deletions

View File

@ -27,22 +27,14 @@ SUB_LIST= LOGDIR=${LOGDIR}
USERS= bopm
GROUPS= bopm
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} \
-e 's,data_DATA = bopm.conf.sample,data_DATA =,g' \
-e 's,$(sysconfdir)/bopm.conf,$(sysconfdir)/bopm.conf.sample,g' \
${WRKSRC}/Makefile.in
-e 's,$$(sysconfdir)/bopm.conf,$$(DESTDIR)&.sample,g' \
-e '/localstatedir/d' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} \
-e 's,/some/path/bopm.pid,${LOGDIR}/bopm.pid,g' \
-e 's,/some/path/scan.log,${LOGDIR}/scan.log,g' \
${WRKSRC}/bopm.conf.sample
post-install:
@${CHOWN} ${USERS}:${GROUPS} ${LOGDIR}
@${CHMOD} 750 ${LOGDIR}
@${CHOWN} ${USERS}:${GROUPS} ${PREFIX}/etc/bopm.conf.sample
@${CHMOD} 640 ${PREFIX}/etc/bopm.conf.sample
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -1,7 +1,13 @@
@unexec /bin/echo "===>" Stopping bopm...
@unexec /usr/bin/killall bopm 2>/dev/null || true
bin/bopm
@owner bopm
@group bopm
@mode 640
etc/bopm.conf.sample
@owner
@group
@mode
include/opm.h
include/opm_error.h
include/opm_types.h
@ -11,3 +17,4 @@ lib/libopm.so.0
lib/libopm.so
lib/libopm.la
lib/libopm.a
@exec install -d -m 750 -o bopm -g bopm %%LOGDIR%% 2>/dev/null || true