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

(-)Makefile (-5 / +5 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	sympa
4
PORTNAME=	sympa
5
PORTVERSION=	6.1.17
5
PORTVERSION=	6.1.19
6
PORTREVISION=	1
7
CATEGORIES=	mail
6
CATEGORIES=	mail
8
MASTER_SITES=	http://www.sympa.org/distribution/ \
7
MASTER_SITES=	http://www.sympa.org/distribution/ \
9
		http://www.sympa.org/distribution/old/
8
		http://www.sympa.org/distribution/old/
Lines 127-133 Link Here
127
	    -e 's|^\( *bouncedir=\).*$$|\1${DATADIR}/bounce|'		\
126
	    -e 's|^\( *bouncedir=\).*$$|\1${DATADIR}/bounce|'		\
128
	    -e 's|^\( *execcgidir=\).*$$|\1${PREFIX}/libexec/${PORTNAME}|' \
127
	    -e 's|^\( *execcgidir=\).*$$|\1${PREFIX}/libexec/${PORTNAME}|' \
129
		${WRKSRC}/configure
128
		${WRKSRC}/configure
130
	${REINPLACE_CMD} -e 's|\(--target.*sympa.conf\)|\1.sample|'	\
129
	@${REINPLACE_CMD} -e 's|\(--target.*sympa.conf\)|\1.sample|'	\
131
			  -e 's|/bin/true$$|:|'				\
130
			  -e 's|/bin/true$$|:|'				\
132
		${WRKSRC}/Makefile.in
131
		${WRKSRC}/Makefile.in
133
	@${REINPLACE_CMD} -e 's#\$$(DESTDIR)\$$(sampledir)#${STAGEDIR}\$$(sampledir)#g' \
132
	@${REINPLACE_CMD} -e 's#\$$(DESTDIR)\$$(sampledir)#${STAGEDIR}\$$(sampledir)#g' \
Lines 140-150 Link Here
140
	for dir in $$(sort ${WRKSRC}/createddirs); do \
139
	for dir in $$(sort ${WRKSRC}/createddirs); do \
141
		${MKDIR} -m755 ${STAGEDIR}$$dir; \
140
		${MKDIR} -m755 ${STAGEDIR}$$dir; \
142
		${TOUCH} ${STAGEDIR}$$dir/.keep; \
141
		${TOUCH} ${STAGEDIR}$$dir/.keep; \
143
		${ECHO_CMD} "@exec chown ${USERS}:${GROUPS} $${dir#${PREFIX}/}" >> ${TMPPLIST}; \
142
		${ECHO_CMD} "@exec ${CHOWN} ${USERS}:${GROUPS} $${dir#${PREFIX}/}" >> ${TMPPLIST}; \
144
		${ECHO_CMD} "$${dir#${PREFIX}/}/.keep" >> ${TMPPLIST}; \
143
		${ECHO_CMD} "$${dir#${PREFIX}/}/.keep" >> ${TMPPLIST}; \
145
	done; \
144
	done; \
146
	for dir in $$(sort -r ${WRKSRC}/createddirs); do \
145
	for dir in $$(sort -r ${WRKSRC}/createddirs); do \
147
		${ECHO_CMD} "@unexec rmdir $$dir" >> ${TMPPLIST}; \
146
		${ECHO_CMD} "@unexec ${RMDIR} $$dir" >> ${TMPPLIST}; \
148
	done
147
	done
148
	${INSTALL_DATA} ${WRKSRC}/etc_README ${STAGEDIR}/${ETCDIR}
149
149
150
.include <bsd.port.mk>
150
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (sympa-6.1.17.tar.gz) = a506ea6e9c88c4a91d22bf146acb06fae5c277e98312b957bdae974739145b79
1
SHA256 (sympa-6.1.19.tar.gz) = 6851ab836d156df187a687630d54a982e284f034d3e74b3bc1da850841f11482
2
SIZE (sympa-6.1.17.tar.gz) = 7881215
2
SIZE (sympa-6.1.19.tar.gz) = 8218756
(-)files/patch-Makefile.in (-10 / +24 lines)
Lines 1-10 Link Here
1
Avoid chown before install, to avoid using root.
1
--- Makefile.in.orig	2014-02-05 15:08:23.000000000 +0100
2
2
+++ Makefile.in	2014-03-14 10:42:06.143965800 +0100
3
createddirs is read in Makefile and processed there
3
@@ -639,12 +639,7 @@
4
5
--- Makefile.in.orig	2013-02-05 14:57:30.000000000 +0000
6
+++ Makefile.in	2014-01-01 20:07:50.489335639 +0000
7
@@ -631,12 +631,9 @@
8
 		$(spooldir)/moderation $(spooldir)/expire $(spooldir)/auth \
4
 		$(spooldir)/moderation $(spooldir)/expire $(spooldir)/auth \
9
 		$(spooldir)/outgoing $(spooldir)/tmp $(spooldir)/task \
5
 		$(spooldir)/outgoing $(spooldir)/tmp $(spooldir)/task \
10
 		$(bouncedir) $(arcdir) $(piddir) $(staticdir) $(sysconfdir); do \
6
 		$(bouncedir) $(arcdir) $(piddir) $(staticdir) $(sysconfdir); do \
Lines 15-26 Link Here
15
-		chown $(USER) $(DESTDIR)$$dir || /bin/true; \
11
-		chown $(USER) $(DESTDIR)$$dir || /bin/true; \
16
-		chgrp $(GROUP) $(DESTDIR)$$dir || /bin/true; \
12
-		chgrp $(GROUP) $(DESTDIR)$$dir || /bin/true; \
17
+		echo "$${dir}" >> createddirs; \
13
+		echo "$${dir}" >> createddirs; \
18
+		\
19
+		\
20
 	done
14
 	done
21
 
15
 
22
 installconfig: installdir
16
 installconfig: installdir
23
@@ -668,8 +665,6 @@
17
@@ -676,27 +671,12 @@
24
 		echo "# automatically created file" >> data_structure.version; \
18
 		echo "# automatically created file" >> data_structure.version; \
25
 		echo "# you should not modify it" >> data_structure.version; \
19
 		echo "# you should not modify it" >> data_structure.version; \
26
 		echo $(VERSION) >> data_structure.version; \
20
 		echo $(VERSION) >> data_structure.version; \
Lines 27-31 Link Here
27
-		chown $(USER) data_structure.version || /bin/true; \
21
-		chown $(USER) data_structure.version || /bin/true; \
28
-		chgrp $(GROUP) data_structure.version || /bin/true; \
22
-		chgrp $(GROUP) data_structure.version || /bin/true; \
29
 	fi
23
 	fi
24
 	@for dir in create_list_templates families \
25
 		global_task_models list_task_models scenari search_filters \
26
 		mail_tt2 web_tt2; do \
27
-		if [ ! -d $(DESTDIR)$(sysconfdir)/$$dir ] ; then \
28
-			echo "Creating $(DESTDIR)$(sysconfdir)/$$dir"; \
29
-			install -d -m 755 $(DESTDIR)$(sysconfdir)/$$dir; \
30
-		fi; \
31
-		chown $(USER) $(DESTDIR)$(sysconfdir)/$$dir || /bin/true; \
32
-		chgrp $(GROUP) $(DESTDIR)$(sysconfdir)/$$dir || /bin/true; \
33
+		echo "$(DESTDIR)$(sysconfdir)/$${dir}" >> createddirs; \
34
 	done
35
-	@if [ ! -e $(DESTDIR)$(sysconfdir)/README ]; then \
36
-		echo "Creating $(DESTDIR)$(sysconfdir)/README"; \
37
-		$(SED) \
38
-			-e 's|--sysconfdir--|$(sysconfdir)|' \
39
-			-e 's|--defaultdir--|$(defaultdir)|' \
40
-			etc_README > $(DESTDIR)$(sysconfdir)/README; \
41
-		chmod 444 $(DESTDIR)$(sysconfdir)/README; \
42
-	fi
30
 
43
 
31
 nextstep: 
44
 nextstep: 
45
 	@echo ""
(-)pkg-plist (-2 / +2 lines)
Lines 38-44 Link Here
38
libexec/sympa/WebAgent.pm
38
libexec/sympa/WebAgent.pm
39
libexec/sympa/admin.pm
39
libexec/sympa/admin.pm
40
libexec/sympa/alias_manager.pl
40
libexec/sympa/alias_manager.pl
41
libexec/sympa/aliaswrapper
42
libexec/sympa/arc2webarc.pl
41
libexec/sympa/arc2webarc.pl
43
libexec/sympa/archived.pl
42
libexec/sympa/archived.pl
44
libexec/sympa/bounced.pl
43
libexec/sympa/bounced.pl
Lines 61-66 Link Here
61
libexec/sympa/p12topem.pl
60
libexec/sympa/p12topem.pl
62
libexec/sympa/queue
61
libexec/sympa/queue
63
libexec/sympa/report.pm
62
libexec/sympa/report.pm
63
libexec/sympa/sympa_newaliases-wrapper
64
libexec/sympa/sympa_newaliases.pl
64
libexec/sympa/sympa.pl
65
libexec/sympa/sympa.pl
65
libexec/sympa/sympa_soap_client.pl
66
libexec/sympa/sympa_soap_client.pl
66
libexec/sympa/sympa_soap_server-wrapper.fcgi
67
libexec/sympa/sympa_soap_server-wrapper.fcgi
Lines 74-80 Link Here
74
libexec/sympa/tools.pm
75
libexec/sympa/tools.pm
75
libexec/sympa/tpl2tt2.pl
76
libexec/sympa/tpl2tt2.pl
76
libexec/sympa/tt2.pm
77
libexec/sympa/tt2.pm
77
libexec/sympa/virtualwrapper
78
libexec/sympa/wwslib.pm
78
libexec/sympa/wwslib.pm
79
libexec/sympa/wwsympa-wrapper.fcgi
79
libexec/sympa/wwsympa-wrapper.fcgi
80
libexec/sympa/wwsympa.fcgi
80
libexec/sympa/wwsympa.fcgi

Return to bug 187573