1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# ex:ts=8
# New ports collection makefile for: emirror
# Date created: Apr 19, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= emirror
PORTVERSION= 2.2.0.0.4
PORTREVISION= 0
CATEGORIES= ftp python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://eclipt.uni-klu.ac.at/pub/projects/emirror/snapshots/
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-2.2.0-0.4
MAINTAINER= ports@FreeBSD.org
COMMENT= A full features FTP-mirroring software with nice logfiles
HTMLDIR?= ${PREFIX}/www/emirror
LOCKDIR?= /tmp/emirror-locks
USE_REINPLACE= yes
USE_PYTHON= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-htmldir=${HTMLDIR}
USE_GMAKE= yes
NO_BUILD= yes
PLIST_FILES= bin/emirror bin/mirror bin/updateindex
MAN1= emirror.1
post-patch:
@${REINPLACE_CMD} -e "s| -b | |" \
-e "s|[$$][(]prefix[)]/var/emirror/locks|${LOCKDIR}|" \
${WRKSRC}/Makefile.in
.for file in cgi/status.cgi.in etc/general.cfg.in
@${REINPLACE_CMD} -e "s|@prefix@/var/emirror/locks|${LOCKDIR}|" \
${WRKSRC}/${file}
.endfor
@${REINPLACE_CMD} -e "s|/var/tmp/emirror-locks/|${LOCKDIR}|" \
${WRKSRC}/main.py
@${GREP} -lR "/var/www" ${WRKSRC}/etc | ${XARGS} \
${REINPLACE_CMD} -e "s,/var/www,${HTMLDIR},"
post-install:
@${FIND} ${PREFIX}/lib/emirror -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/emirror" >> ${TMPPLIST}
@${FIND} ${PREFIX}/etc/emirror -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${FIND} ${PREFIX}/etc/emirror -type d | ${SORT} -r | \
${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
@${FIND} ${HTMLDIR} -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm ${HTMLDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
.include <bsd.port.mk>
|