View | Details | Raw Unified | Return to bug 137813
Collapse All | Expand All

(-)Makefile (-15 / +14 lines)
Lines 6-36 Link Here
6
#
6
#
7
7
8
PORTNAME=	voipong
8
PORTNAME=	voipong
9
PORTVERSION=	1.1
9
PORTVERSION=	2.0
10
CATEGORIES=	audio
10
CATEGORIES=	audio
11
MASTER_SITES=	http://www.enderunix.org/voipong/
11
MASTER_SITES=	http://www.enderunix.org/voipong/
12
12
13
MAINTAINER=	siseci@EnderUNIX.org
13
MAINTAINER=	siseci@EnderUNIX.org
14
COMMENT=	Detect Voice Over IP calls and dump them to separate wave files
14
COMMENT=	Detect Voice Over IP calls and dump them to separate wave files
15
15
16
GNU_CONFIGURE=	yes
16
USE_LDCONFIG=	yes
17
18
SUB_FILES=	pkg-message
17
SUB_FILES=	pkg-message
19
PLIST_FILES=	bin/voipong etc/voipong.conf-dist
18
PORTDOCS=	ALGORITHMS AUTHORS ChangeLog COPYING INSTALL KNOWN_BUGS \
20
PORTDOCS=	AUTHORS INSTALL README THANKS
19
		LICENSE  NEWS README THANKS TODO
21
20
22
post-patch:
21
post-patch:
23
	@${REINPLACE_CMD} -e 's|^CFLAGS=""||' ${WRKSRC}/configure
22
	@${MV} ${WRKSRC}/Makefile.bsd ${WRKSRC}/Makefile
24
	@${REINPLACE_CMD} -e \
25
		's|$${prefix}/share/voipong|${DOCSDIR}|; \
26
		 s|COPYING||; s|LICENSE||' \
27
		${WRKSRC}/Makefile.in
28
.ifdef NOPORTDOCS
29
	${REINPLACE_CMD} '/install-data-am:/s/install-${PORTNAME}dataDATA//' \
30
		${WRKSRC}/Makefile.in
31
.endif
32
33
post-install:
23
post-install:
24
.if !defined(NOPORTDOCS)
25
	${MKDIR} ${DOCSDIR}
26
	${MKDIR} ${DOCSDIR}/users-manual
27
	${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.html ${DOCSDIR}/users-manual/
28
	${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.css ${DOCSDIR}/users-manual/
29
.for doc in ${PORTDOCS}
30
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
31
.endfor
32
.endif
34
	@${CAT} ${PKGMESSAGE}
33
	@${CAT} ${PKGMESSAGE}
35
34
36
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (voipong-1.1.tar.gz) = e5b012434e5aeb8188bad1579f7e9f47
1
MD5 (voipong-2.0.tar.gz) = 4b3e16c5d8399bba86b3caf1887550ff
2
SHA256 (voipong-1.1.tar.gz) = 08973834bdda36a7b71ed0da9bd682858f3e91cbf76cfb5cbd3fea0719b62ae3
2
SHA256 (voipong-2.0.tar.gz) = d22aac1bf7adf2fc9e0cebbc1292b763d16c8d4a0e7ebbd6d4d460201986e9a3
3
SIZE (voipong-1.1.tar.gz) = 157070
3
SIZE (voipong-2.0.tar.gz) = 76426
(-)pkg-plist (+26 lines)
Added Link Here
1
bin/voipong
2
bin/voipctl
3
etc/voipong.conf.example
4
%%PORTDOCS%%%%DOCSDIR%%/users-manual/book.html
5
%%PORTDOCS%%%%DOCSDIR%%/users-manual/compilation.html
6
%%PORTDOCS%%%%DOCSDIR%%/users-manual/config-netfile.html
7
%%PORTDOCS%%%%DOCSDIR%%/users-manual/config.html
8
%%PORTDOCS%%%%DOCSDIR%%/users-manual/docbook.css
9
%%PORTDOCS%%%%DOCSDIR%%/users-manual/dsom.html
10
%%PORTDOCS%%%%DOCSDIR%%/users-manual/examples-msnetmeeting.html
11
%%PORTDOCS%%%%DOCSDIR%%/users-manual/examples.html
12
%%PORTDOCS%%%%DOCSDIR%%/users-manual/faq.html
13
%%PORTDOCS%%%%DOCSDIR%%/users-manual/features.html
14
%%PORTDOCS%%%%DOCSDIR%%/users-manual/index.html
15
%%PORTDOCS%%%%DOCSDIR%%/users-manual/installation.html
16
%%PORTDOCS%%%%DOCSDIR%%/users-manual/installports.html
17
%%PORTDOCS%%%%DOCSDIR%%/users-manual/intro.html
18
%%PORTDOCS%%%%DOCSDIR%%/users-manual/thanks.html
19
%%PORTDOCS%%%%DOCSDIR%%/users-manual/usage-livecd.html
20
%%PORTDOCS%%%%DOCSDIR%%/users-manual/usage-nonpriv.html
21
%%PORTDOCS%%%%DOCSDIR%%/users-manual/usage-voipctl.html
22
%%PORTDOCS%%%%DOCSDIR%%/users-manual/usage.html
23
lib/voipong/modvocoder_pcma.so
24
lib/voipong/modvocoder_pcmu.so
25
%%PORTDOCS%%@dirrm %%DOCSDIR%%/users-manual
26
@dirrm lib/voipong
(-)files/patch-Makefile.bsd (+24 lines)
Added Link Here
1
--- Makefile.bsd.orig	2009-08-15 01:16:17.000000000 -0300
2
+++ Makefile.bsd	2009-08-15 01:17:18.000000000 -0300
3
@@ -54,16 +54,15 @@
4
 	$(CC) -g -o voipctl voipctl.o voipongglobals.o conf.o miscutil.o $(CFLAGS) 
5
 
6
 install:
7
-	mkdir -p /usr/local/etc/voipong
8
-	mkdir -p /usr/local/etc/voipong/modules
9
+	mkdir -p /usr/local/lib/voipong
10
 	cp voipong /usr/local/bin/
11
 	cp voipctl /usr/local/bin/
12
-	cp etc/voipong.conf /usr/local/etc/voipong/
13
+	cp etc/voipong.conf /usr/local/etc/voipong.conf.example
14
 	chmod 750 /usr/local/bin/voipong
15
 	chmod 750 /usr/local/bin/voipctl
16
-	chmod 600 /usr/local/etc/voipong/voipong.conf
17
-	cp modvocoder_*.so /usr/local/etc/voipong/modules/
18
-	chmod 500 /usr/local/etc/voipong/modules/*
19
+	chmod 600 /usr/local/etc/voipong.conf.example
20
+	cp modvocoder_*.so /usr/local/lib/voipong/
21
+	chmod 500 /usr/local/lib/voipong/*
22
 
23
 cls:
24
 	$(CLEARX)
(-)files/pkg-message.in (-1 / +1 lines)
Lines 1-6 Link Here
1
---------------------------------------------------------------------
1
---------------------------------------------------------------------
2
You should now copy
2
You should now copy
3
  %%PREFIX%%/etc/voipong.conf-dist
3
  %%PREFIX%%/etc/voipong.conf.example
4
to
4
to
5
  %%PREFIX%%/etc/voipong.conf
5
  %%PREFIX%%/etc/voipong.conf
6
and edit it as appropriate.
6
and edit it as appropriate.

Return to bug 137813