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

(-)free-sa-devel/Makefile (-31 / +31 lines)
Lines 2-13 Link Here
2
# $FreeBSD: www/free-sa-devel/Makefile 327776 2013-09-20 23:36:50Z bapt $
2
# $FreeBSD: www/free-sa-devel/Makefile 327776 2013-09-20 23:36:50Z bapt $
3
3
4
PORTNAME=	free-sa
4
PORTNAME=	free-sa
5
PORTVERSION=	2.0.0b5.10
5
PORTVERSION=	2.0.0b6
6
CATEGORIES=	www
6
CATEGORIES=	www
7
MASTER_SITES=	SF
7
MASTER_SITES=	SF
8
MASTER_SITE_SUBDIR=	free-sa/free-sa-dev/2.0.0b5p10/
8
MASTER_SITE_SUBDIR=	free-sa/free-sa-dev/${PORTVERSION}
9
PKGNAMESUFFIX=	-devel
9
PKGNAMESUFFIX=	-devel
10
DISTNAME=	free-sa-2.0.0b5p10
11
10
12
MAINTAINER=	moiseev@mezonplus.ru
11
MAINTAINER=	moiseev@mezonplus.ru
13
COMMENT=	Statistic analyzer for daemons log files similar to SARG
12
COMMENT=	Statistic analyzer for daemons log files similar to SARG
Lines 20-29 Link Here
20
WWWDIR?=	${PREFIX}/www/${PORTNAME}
19
WWWDIR?=	${PREFIX}/www/${PORTNAME}
21
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${DISTVERSION}
20
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${DISTVERSION}
22
21
22
SUB_FILES=	pkg-deinstall
23
SUB_LIST=	CACHEDIR="/var/cache/${PORTNAME}"
24
23
USE_CSTD=	gnu89
25
USE_CSTD=	gnu89
24
PORTDOCS=	COPYING ChangeLog FAQ INSTALL README README.DEV THANKS
25
MAN1=		free-sa.1
26
MAN5=		free-sa.conf.5
27
26
28
MAKE_ARGS+=	PREFIX="${PREFIX}" \
27
MAKE_ARGS+=	PREFIX="${PREFIX}" \
29
		ETCDIR="${ETCDIR}" \
28
		ETCDIR="${ETCDIR}" \
Lines 38-71 Link Here
38
		LARGEFILE=yes \
37
		LARGEFILE=yes \
39
		SATSEP="'" \
38
		SATSEP="'" \
40
		HAVE_STRL="1" \
39
		HAVE_STRL="1" \
41
		ADDLDFLAGS="${LDFLAGS} -mrelax" \
40
		MANDIR="${MANPREFIX}/man" \
42
		MANDIR="${MANPREFIX}/man"
41
		STAGEDIR="${STAGEDIR}"
43
42
44
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS SA_DEBUG
43
OPTIONS_DEFINE=		OPTIMIZED_CFLAGS SA_DEBUG
45
OPTIMIZED_CFLAGS_DESC=	Build with distribution-recommended CFLAGS
44
OPTIMIZED_CFLAGS_DESC=	Build with distribution-recommended CFLAGS
46
SA_DEBUG_DESC=		Enable Free-SA debugging (level 1)
45
SA_DEBUG_DESC=		Enable Free-SA debugging (level 1)
47
46
48
NO_STAGE=	yes
49
.include <bsd.port.options.mk>
47
.include <bsd.port.options.mk>
50
48
51
pre-everything::
49
pre-everything::
52
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
50
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
53
	@${ECHO_MSG} ">>> This software is computationally demanding, and users are"
51
	@${ECHO_MSG} "============================================================================="
54
	@${ECHO_MSG} ">>> advised to employ compiler optimizations when building it."
52
	@${ECHO_MSG} " This software is computationally demanding, and users are"
55
	@${ECHO_MSG} ">>> Author of this software have used such flags as"
53
	@${ECHO_MSG} " advised to employ compiler optimizations when building it."
56
	@${ECHO_MSG} ">>> 'CFLAGS= -O4 -pipe -march=native' and 'CC= gcc' to advantage."
54
	@${ECHO_MSG} " Author of this software have used such flags as"
57
	@${ECHO_MSG} ">>> You can set them in make.conf, but they depends on your system and compiler."
55
	@${ECHO_MSG} " 'CFLAGS= -O4 -pipe -march=native' and 'CC= gcc' to advantage."
58
	@${ECHO_MSG} ">>> In addition, you can enable extra flags by defining WITH_OPTIMIZED_CFLAGS"
56
	@${ECHO_MSG} " You can set them in make.conf, but they depends on your system and compiler."
59
	@${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
57
	@${ECHO_MSG} " In addition, you can enable extra flags by defining WITH_OPTIMIZED_CFLAGS"
60
	@${ECHO_MSG} ">>>"
58
	@${ECHO_MSG} " For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
59
	@${ECHO_MSG} "============================================================================="
61
.endif
60
.endif
62
.if empty(PORT_OPTIONS:MSA_DEBUG) && (SA_DEBUG_LEVEL)
61
.if empty(PORT_OPTIONS:MSA_DEBUG) &! (SA_DEBUG_LEVEL)
63
	@${ECHO_MSG} ">>> You can enable Free-SA debugging (level 1) by defining WITH_SA_DEBUG"
62
	@${ECHO_MSG} "============================================================================="
64
	@${ECHO_MSG} ">>> For example, 'make WITH_SA_DEBUG=yes'"
63
	@${ECHO_MSG} " You can enable Free-SA debugging (level 1) by defining WITH_SA_DEBUG"
65
	@${ECHO_MSG} ">>> Or for specific level (0-7) you can use SA_DEBUG_LEVEL"
64
	@${ECHO_MSG} " For example, 'make WITH_SA_DEBUG=yes'"
66
	@${ECHO_MSG} ">>> For example, 'make SA_DEBUG_LEVEL=4'"
65
	@${ECHO_MSG} " Or for specific level (0-7) you can use SA_DEBUG_LEVEL"
67
	@${ECHO_MSG} ">>> Note that SA_DEBUG_LEVEL overrides WITH_SA_DEBUG"
66
	@${ECHO_MSG} " For example, 'make SA_DEBUG_LEVEL=4'"
68
	@${ECHO_MSG} ">>>"
67
	@${ECHO_MSG} " Note that SA_DEBUG_LEVEL overrides WITH_SA_DEBUG"
68
	@${ECHO_MSG} "============================================================================="
69
.endif
69
.endif
70
70
71
.if ${PORT_OPTIONS:MSA_DEBUG}
71
.if ${PORT_OPTIONS:MSA_DEBUG}
Lines 74-88 Link Here
74
SA_DEBUG_LEVEL?=	0
74
SA_DEBUG_LEVEL?=	0
75
.endif
75
.endif
76
76
77
.if defined(NOPORTDOCS)
78
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-Makefile
79
.endif
80
81
post-patch:
77
post-patch:
82
	@${REINPLACE_CMD} \
78
	@cd ${WRKSRC} && \
79
	${REINPLACE_CMD} \
83
		-e 's,^DEBUG = .*,DEBUG = ${SA_DEBUG_LEVEL},' \
80
		-e 's,^DEBUG = .*,DEBUG = ${SA_DEBUG_LEVEL},' \
84
		-e 's,^include .(GMKPATH)/configs/.(OSTYPE)\.mk,,' \
81
		-e 's,^include .(GMKPATH)/configs/.(OSTYPE)\.mk,,' \
85
		${WRKSRC}/global.mk
82
		global.mk && \
83
	${REINPLACE_CMD} -E \
84
		-e '/#define/!s,\$$\((PREFIX|WWWDIR|CACHEDIR|DOCDIR|ETCDIR|MANDIR|LOCDIR)\),$$(STAGEDIR)&,' \
85
		Makefile themes/Makefile src/Makefile etc/Makefile man/Makefile share/Makefile
86
86
87
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
87
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
88
MAKE_ARGS+=	ADDCFLAGS="${CFLAGS} \
88
MAKE_ARGS+=	ADDCFLAGS="${CFLAGS} \
(-)free-sa-devel/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (free-sa-2.0.0b5p10.tar.gz) = 12ba763ce38d64979c8cb378741f507a0d8acb5d3cdbb443d940716317c95bee
1
SHA256 (free-sa-2.0.0b6.tar.gz) = 8fc6015bae08bd7d87bf19d53a2a0b96cb803750533ce3c1a15eec1a6037f020
2
SIZE (free-sa-2.0.0b5p10.tar.gz) = 98991
2
SIZE (free-sa-2.0.0b6.tar.gz) = 105566
(-)free-sa-devel/files/extra-patch-Makefile (-13 lines)
Lines 1-13 Link Here
1
--- Makefile.orig	2009-07-23 16:08:46.000000000 +0400
2
+++ Makefile	2009-07-23 16:12:00.000000000 +0400
3
@@ -17,10 +17,6 @@
4
 	$(MAKEDIRS)
5
 	@(										\
6
 	$(INSTALLODR) $(CACHEDIR);							\
7
-	$(INSTALLDIR) $(DOCDIR);							\
8
-	for IDOCFILE in COPYING ChangeLog FAQ INSTALL README README.DEV THANKS; do	\
9
-	    $(INSTALLFIL) $$IDOCFILE $(DOCDIR);						\
10
-	done										\
11
 	)
12
 
13
 src/config.h: global.mk
(-)free-sa-devel/files/pkg-deinstall.in (+20 lines)
Line 0 Link Here
1
#! /bin/sh
2
3
if [ "$2" != "POST-DEINSTALL" ]; then
4
    exit 0
5
fi
6
7
echo
8
echo "======================================================================"
9
echo " If you are permanently removing Free-SA, you should manually delete:"
10
if [ -d %%ETCDIR%% ]; then
11
    echo "  - Free-SA configuration:	rm -r %%ETCDIR%%"
12
fi
13
if [ -d %%WWWDIR%% ]; then
14
    echo "  - Free-SA www directory:	rm -r %%WWWDIR%%"
15
fi
16
if [ -d %%CACHEDIR%% ]; then
17
    echo "  - Free-SA cache directory:	rm -r %%CACHEDIR%%"
18
fi
19
echo "======================================================================"
20
echo
(-)free-sa-devel/pkg-plist (-23 / +33 lines)
Lines 1-24 Link Here
1
@unexec /bin/rm -f %D/%%WWWDIR%%/themes/default
2
bin/free-sa
1
bin/free-sa
3
%%ETCDIR%%/HTTP_CONNECT_method.filter.sample
2
etc/free-sa/HTTP_CONNECT_method.filter.sample
4
%%ETCDIR%%/HTTP_PUT+POST_method.filter.sample
3
etc/free-sa/HTTP_PUT+POST_method.filter.sample
5
%%ETCDIR%%/HTTP_downloads.filter.sample
4
etc/free-sa/HTTP_downloads.filter.sample
6
%%ETCDIR%%/HTTP_downloads_archives.filter.sample
5
etc/free-sa/HTTP_downloads_archives.filter.sample
7
%%ETCDIR%%/HTTP_downloads_audio.filter.sample
6
etc/free-sa/HTTP_downloads_audio.filter.sample
8
%%ETCDIR%%/HTTP_downloads_cddvd.filter.sample
7
etc/free-sa/HTTP_downloads_cddvd.filter.sample
9
%%ETCDIR%%/HTTP_downloads_code.filter.sample
8
etc/free-sa/HTTP_downloads_code.filter.sample
10
%%ETCDIR%%/HTTP_downloads_office.filter.sample
9
etc/free-sa/HTTP_downloads_office.filter.sample
11
%%ETCDIR%%/HTTP_downloads_video.filter.sample
10
etc/free-sa/HTTP_downloads_video.filter.sample
12
%%ETCDIR%%/HTTP_proxy_auth_failures.filter.sample
11
etc/free-sa/HTTP_proxy_auth_failures.filter.sample
13
%%ETCDIR%%/HTTP_proxy_denied.filter.sample
12
etc/free-sa/HTTP_proxy_denied.filter.sample
14
%%ETCDIR%%/HTTP_site_auth_failures.filter.sample
13
etc/free-sa/HTTP_site_auth_failures.filter.sample
15
%%ETCDIR%%/HTTP_site_denied.filter.sample
14
etc/free-sa/HTTP_site_denied.filter.sample
16
%%ETCDIR%%/HTTP_unusual_codes.filter.sample
15
etc/free-sa/HTTP_unusual_codes.filter.sample
17
%%ETCDIR%%/HTTP_unusual_methods.filter.sample
16
etc/free-sa/HTTP_unusual_methods.filter.sample
18
%%ETCDIR%%/SMTP_delivery_rejected.filter.sample
17
etc/free-sa/SMTP_delivery_rejected.filter.sample
19
%%ETCDIR%%/SMTP_receiving_rejected.filter.sample
18
etc/free-sa/SMTP_receiving_rejected.filter.sample
20
%%ETCDIR%%/free-sa.conf.sample
19
etc/free-sa/free-sa.conf.sample
21
%%ETCDIR%%/users.filter.sample
20
etc/free-sa/users.filter.sample
21
man/man1/free-sa.1.gz
22
man/man5/free-sa.conf.5.gz
23
%%PORTDOCS%%%%DOCSDIR%%/COPYING
24
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
25
%%PORTDOCS%%%%DOCSDIR%%/FAQ
26
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
27
%%PORTDOCS%%%%DOCSDIR%%/README
28
%%PORTDOCS%%%%DOCSDIR%%/README.DEV
29
%%PORTDOCS%%%%DOCSDIR%%/THANKS
22
%%DATADIR%%/be.cp1251
30
%%DATADIR%%/be.cp1251
23
%%DATADIR%%/cs.iso88592
31
%%DATADIR%%/cs.iso88592
24
%%DATADIR%%/de.iso88591
32
%%DATADIR%%/de.iso88591
Lines 48-53 Link Here
48
%%WWWDIR%%/themes/blues/lsa.css
56
%%WWWDIR%%/themes/blues/lsa.css
49
%%WWWDIR%%/themes/blues/rsa.css
57
%%WWWDIR%%/themes/blues/rsa.css
50
%%WWWDIR%%/themes/blues/s.png
58
%%WWWDIR%%/themes/blues/s.png
59
%%WWWDIR%%/themes/default
51
%%WWWDIR%%/themes/qbiq/c.png
60
%%WWWDIR%%/themes/qbiq/c.png
52
%%WWWDIR%%/themes/qbiq/d.png
61
%%WWWDIR%%/themes/qbiq/d.png
53
%%WWWDIR%%/themes/qbiq/g.png
62
%%WWWDIR%%/themes/qbiq/g.png
Lines 66-82 Link Here
66
%%WWWDIR%%/themes/sarg/c.png
75
%%WWWDIR%%/themes/sarg/c.png
67
%%WWWDIR%%/themes/sarg/d.png
76
%%WWWDIR%%/themes/sarg/d.png
68
%%WWWDIR%%/themes/sarg/g.png
77
%%WWWDIR%%/themes/sarg/g.png
69
%%WWWDIR%%/themes/sarg/s.png
70
%%WWWDIR%%/themes/sarg/gsa.css
78
%%WWWDIR%%/themes/sarg/gsa.css
71
%%WWWDIR%%/themes/sarg/lsa.css
79
%%WWWDIR%%/themes/sarg/lsa.css
72
%%WWWDIR%%/themes/sarg/rsa.css
80
%%WWWDIR%%/themes/sarg/rsa.css
73
%%WWWDIR%%/themes/silver/s.png
81
%%WWWDIR%%/themes/sarg/s.png
74
%%WWWDIR%%/themes/silver/c.png
82
%%WWWDIR%%/themes/silver/c.png
75
%%WWWDIR%%/themes/silver/d.png
83
%%WWWDIR%%/themes/silver/d.png
76
%%WWWDIR%%/themes/silver/g.png
84
%%WWWDIR%%/themes/silver/g.png
77
%%WWWDIR%%/themes/silver/gsa.css
85
%%WWWDIR%%/themes/silver/gsa.css
78
%%WWWDIR%%/themes/silver/lsa.css
86
%%WWWDIR%%/themes/silver/lsa.css
79
%%WWWDIR%%/themes/silver/rsa.css
87
%%WWWDIR%%/themes/silver/rsa.css
88
%%WWWDIR%%/themes/silver/s.png
80
@dirrm %%WWWDIR%%/themes/silver
89
@dirrm %%WWWDIR%%/themes/silver
81
@dirrm %%WWWDIR%%/themes/sarg
90
@dirrm %%WWWDIR%%/themes/sarg
82
@dirrm %%WWWDIR%%/themes/rbsec
91
@dirrm %%WWWDIR%%/themes/rbsec
Lines 86-89 Link Here
86
@dirrm %%WWWDIR%%/cgi-bin
95
@dirrm %%WWWDIR%%/cgi-bin
87
@dirrmtry %%WWWDIR%%
96
@dirrmtry %%WWWDIR%%
88
@dirrm %%DATADIR%%
97
@dirrm %%DATADIR%%
89
@dirrmtry %%ETCDIR%%
98
%%PORTDOCS%%@dirrm %%DOCSDIR%%
99
@dirrmtry etc/free-sa

Return to bug 184050