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

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-26 08:54:34 +00:00
parent 14089d0aef
commit a40282cef9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346151
2 changed files with 13 additions and 13 deletions

View File

@ -10,13 +10,11 @@ MASTER_SITES= http://linuxfocus.org/~guido/
MAINTAINER= samm@os2.kiev.ua
COMMENT= A minimalistic tool for keeping filesystems in synchronization
USES= gmake
ALL_TARGET= default
USE_GMAKE= yes
MAKEFILE= makefile
MAN1= ssync.1
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's@/etc/init.d/ssyncd@\$$0@g' ${WRKSRC}/ssyncd.init
@${REINPLACE_CMD} -e "s@/etc@${PREFIX}/etc@g;s@/usr/sbin@${PREFIX}/sbin@g;" \
@ -26,14 +24,15 @@ post-patch:
-e 's@$$(LD)@$$(CC)@' ${WRKSRC}/makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/ssync ${PREFIX}/bin/ssync
@${INSTALL_PROGRAM} ${WRKSRC}/ssyncd ${PREFIX}/sbin/ssyncd
@${INSTALL_DATA} ${WRKSRC}/ssyncd.conf ${PREFIX}/etc/ssyncd.conf.sample
@${INSTALL_DATA} ${WRKSRC}/ssyncd.work ${PREFIX}/etc/ssyncd.work.sample
@${INSTALL_SCRIPT} ${WRKSRC}/ssyncd.init ${PREFIX}/etc/rc.d/ssyncd.init
@${INSTALL_MAN} ${WRKSRC}/ssync.man ${MAN1PREFIX}/man/man1/ssync.1
post-install:
@${CAT} ${PKGMESSAGE}
${INSTALL_PROGRAM} ${WRKSRC}/ssync ${STAGEDIR}${PREFIX}/bin/ssync
${INSTALL_PROGRAM} ${WRKSRC}/ssyncd ${STAGEDIR}${PREFIX}/sbin/ssyncd
${INSTALL_DATA} ${WRKSRC}/ssyncd.conf \
${STAGEDIR}${PREFIX}/etc/ssyncd.conf.sample
${INSTALL_DATA} ${WRKSRC}/ssyncd.work \
${STAGEDIR}${PREFIX}/etc/ssyncd.work.sample
${INSTALL_SCRIPT} ${WRKSRC}/ssyncd.init \
${STAGEDIR}${PREFIX}/etc/rc.d/ssyncd.init
${INSTALL_MAN} ${WRKSRC}/ssync.man \
${STAGEDIR}${MANPREFIX}/man/man1/ssync.1
.include <bsd.port.mk>

View File

@ -3,3 +3,4 @@ sbin/ssyncd
etc/ssyncd.conf.sample
etc/ssyncd.work.sample
etc/rc.d/ssyncd.init
man/man1/ssync.1.gz