mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
1: Stagify.
2: use @sample on pkg-plist, bump version. Approved by: portmgr@
This commit is contained in:
parent
a5d7c081d4
commit
cc0a21ce81
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358540
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= ipcad
|
||||
PORTVERSION= 3.7.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
|
||||
http://ipcad.sourceforge.net/ \
|
||||
@ -16,20 +16,14 @@ USE_RC_SUBR= ipcad
|
||||
SUB_FILES= pkg-message
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
MANCOMPRESSED= no
|
||||
MAN5= ipcad.conf.5
|
||||
MAN8= ipcad.8
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g ; \
|
||||
s|/usr/local|${PREFIX}|g; s|pthread_detach|pthread_create|g'\
|
||||
${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${PREFIX}/bin/ipcad
|
||||
${INSTALL_MAN} ${WRKSRC}/ipcad.8 ${MANPREFIX}/man/man8
|
||||
${INSTALL_MAN} ${WRKSRC}/ipcad.conf.5 ${MANPREFIX}/man/man5
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ipcad
|
||||
${INSTALL_MAN} ${WRKSRC}/ipcad.8 ${STAGEDIR}${MANPREFIX}/man/man8
|
||||
${INSTALL_MAN} ${WRKSRC}/ipcad.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
27
net-mgmt/ipcad/files/patch-Makefile.in
Normal file
27
net-mgmt/ipcad/files/patch-Makefile.in
Normal file
@ -0,0 +1,27 @@
|
||||
--- Makefile.in.orig 2014-06-20 17:27:10.338785483 +0800
|
||||
+++ Makefile.in 2014-06-20 17:28:29.857773300 +0800
|
||||
@@ -132,23 +132,7 @@ install-man: man
|
||||
install-conf:
|
||||
@${INSTALL} -d $(DESTDIR)${sysconfdir}
|
||||
${INSTALL} -m 644 ipcad.conf.simple $(DESTDIR)${sysconfdir}/ipcad.conf.simple
|
||||
- -@diff ${sysconfdir}/ipcad.conf \
|
||||
- ${sysconfdir}/ipcad.conf.default >/dev/null 2>&1; \
|
||||
- if [ "$$?" -eq 0 ] || [ ! -f ${sysconfdir}/ipcad.conf ]; then \
|
||||
- echo ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf.default; \
|
||||
- ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf.default; \
|
||||
- echo ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf; \
|
||||
- ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf; \
|
||||
- echo "**********************************************"; \
|
||||
- echo "* Please customize ${sysconfdir}/ipcad.conf *"; \
|
||||
- echo "**********************************************"; \
|
||||
- else \
|
||||
- echo ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf.default; \
|
||||
- ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf.default; \
|
||||
- echo "*********************************************"; \
|
||||
- echo "* Updated ${sysconfdir}/ipcad.conf.default *"; \
|
||||
- echo "*********************************************"; \
|
||||
- fi
|
||||
+ ${INSTALL} -m 644 ipcad.conf.default $(DESTDIR)${sysconfdir}/ipcad.conf.sample;
|
||||
@echo ""
|
||||
@echo "Now you might want to 'make install-man'"
|
||||
@echo ""
|
@ -1,4 +1,5 @@
|
||||
bin/ipcad
|
||||
@unexec if cmp -s %D/etc/ipcad.conf %D/etc/ipcad.conf.default; then rm -f %D/etc/ipcad.conf; fi
|
||||
etc/ipcad.conf.default
|
||||
@sample etc/ipcad.conf.sample
|
||||
etc/ipcad.conf.simple
|
||||
man/man5/ipcad.conf.5.gz
|
||||
man/man8/ipcad.8.gz
|
||||
|
Loading…
Reference in New Issue
Block a user