mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Stageify.
Approved by: portmgr@
This commit is contained in:
parent
2bef4ad4ff
commit
05ae90d6c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354833
@ -12,22 +12,21 @@ COMMENT= Detect Voice Over IP calls and dump them to separate wave files
|
||||
USE_LDCONFIG= yes
|
||||
PORTDOCS= ALGORITHMS AUTHORS ChangeLog COPYING INSTALL KNOWN_BUGS \
|
||||
LICENSE NEWS README THANKS TODO
|
||||
NO_STAGE= yes
|
||||
MAKEFILE= Makefile.bsd
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
post-patch:
|
||||
${MV} ${WRKSRC}/Makefile.bsd ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${MKDIR} ${DOCSDIR}/users-manual
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.html ${DOCSDIR}/users-manual/
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.css ${DOCSDIR}/users-manual/
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/users-manual
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.html ${STAGEDIR}${DOCSDIR}/users-manual/
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.css ${STAGEDIR}${DOCSDIR}/users-manual/
|
||||
.for doc in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,21 +1,38 @@
|
||||
--- Makefile.bsd.orig 2009-08-21 22:13:38.000000000 -0300
|
||||
+++ Makefile.bsd 2009-08-21 22:15:08.000000000 -0300
|
||||
@@ -55,15 +55,15 @@
|
||||
--- Makefile.bsd.orig 2005-12-09 23:20:53.000000000 +0800
|
||||
+++ Makefile.bsd 2014-05-22 20:40:35.717976146 +0800
|
||||
@@ -18,7 +18,7 @@
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
|
||||
-CC=cc
|
||||
+#CC=cc
|
||||
CFLAGS= -g -Wall -Iinclude
|
||||
SHLIBS=-lpcap
|
||||
|
||||
@@ -54,16 +54,16 @@ voipctl: voipctl.o voipongglobals.o
|
||||
$(CC) -g -o voipctl voipctl.o voipongglobals.o conf.o miscutil.o $(CFLAGS)
|
||||
|
||||
install:
|
||||
mkdir -p /usr/local/etc/voipong
|
||||
- mkdir -p /usr/local/etc/voipong
|
||||
- mkdir -p /usr/local/etc/voipong/modules
|
||||
+ mkdir -p /usr/local/lib/voipong
|
||||
cp voipong /usr/local/bin/
|
||||
cp voipctl /usr/local/bin/
|
||||
cp etc/voipong.conf /usr/local/etc/voipong/
|
||||
chmod 750 /usr/local/bin/voipong
|
||||
chmod 750 /usr/local/bin/voipctl
|
||||
chmod 600 /usr/local/etc/voipong/voipong.conf
|
||||
- cp voipong /usr/local/bin/
|
||||
- cp voipctl /usr/local/bin/
|
||||
- cp etc/voipong.conf /usr/local/etc/voipong/
|
||||
- chmod 750 /usr/local/bin/voipong
|
||||
- chmod 750 /usr/local/bin/voipctl
|
||||
- chmod 600 /usr/local/etc/voipong/voipong.conf
|
||||
- cp modvocoder_*.so /usr/local/etc/voipong/modules/
|
||||
- chmod 500 /usr/local/etc/voipong/modules/*
|
||||
+ cp modvocoder_*.so /usr/local/lib/voipong/
|
||||
+ chmod 500 /usr/local/lib/voipong/*
|
||||
+ mkdir -p $(DESTDIR)$(PREFIX)/etc/voipong
|
||||
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/voipong
|
||||
+ cp voipong $(DESTDIR)$(PREFIX)/bin
|
||||
+ cp voipctl $(DESTDIR)$(PREFIX)/bin
|
||||
+ cp etc/voipong.conf $(DESTDIR)$(PREFIX)/etc/voipong
|
||||
+ chmod 750 $(DESTDIR)$(PREFIX)/bin/voipong
|
||||
+ chmod 750 $(DESTDIR)$(PREFIX)/bin/voipctl
|
||||
+ chmod 600 $(DESTDIR)$(PREFIX)/etc/voipong/voipong.conf
|
||||
+ cp modvocoder_*.so $(DESTDIR)$(PREFIX)/lib/voipong/
|
||||
+ chmod 500 $(DESTDIR)$(PREFIX)/lib/voipong/*
|
||||
|
||||
cls:
|
||||
$(CLEARX)
|
||||
|
Loading…
Reference in New Issue
Block a user