mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
7074d7f6ae
While here move some manpages to share/man
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
PORTNAME= ssync
|
|
PORTVERSION= 2.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://linuxfocus.org/~guido/
|
|
|
|
MAINTAINER= samm@FreeBSD.org
|
|
COMMENT= Minimalistic tool for keeping filesystems in synchronization
|
|
WWW= http://linuxfocus.org/~guido/endangered_software.html #ssync
|
|
|
|
USES= gmake
|
|
|
|
ALL_TARGET= default
|
|
MAKEFILE= makefile
|
|
|
|
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;" \
|
|
${WRKSRC}/ssyncd.init ${WRKSRC}/ssyncd.conf ${WRKSRC}/daemon.c \
|
|
${WRKSRC}/ssync.man
|
|
@${REINPLACE_CMD} -e "s@FLAGS=@FLAGS+=@g" -e "/CC=gcc/d" -e "/LD=gcc/d" \
|
|
-e 's@$$(LD)@$$(CC)@' ${WRKSRC}/makefile
|
|
|
|
do-install:
|
|
${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}${PREFIX}/share/man/man1/ssync.1
|
|
|
|
.include <bsd.port.mk>
|