blob: 9d1f54034d0d106ef63b1425ce9d9f30a54b9135 (
plain) (
blame)
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
|
# Created by: Masafumi NAKANE <max@FreeBSD.org>
# $FreeBSD$
PORTNAME= delegate
PORTVERSION= 9.9.13
CATEGORIES= net www
MASTER_SITES= ftp://ftp.delegate.org/pub/DeleGate/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= General purpose TCP/IP proxy system
USES= gmake
SUB_FILES= pkg-message
ADMIN?= admin@example.com
PLIST_FILES= sbin/delegated etc/rc.d/delegated.sh-dist
PORTDOCS= CHANGES COPYRIGHT DG9note.html HowToDG.html IPv6NOTE.txt \
Manual.htm jpconv.htm tutor-en.htm tutor-jp.htm
post-extract:
@${LN} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/DG9note.html \
${WRKSRC}/IPv6NOTE.txt ${WRKSRC}/doc
post-patch:
# Prevent "filesystem was touched prior to 'make install' phase" warning;
# allow unattended (non-interactive) builds
@${REINPLACE_CMD} -e 's,"$$(XDG)",& DGROOT=${WRKDIR},' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -E '/ADMIN/s,undef,${ADMIN}, ; \
s,-F(esign|ver),& DGROOT=${WRKDIR},' ${WRKSRC}/src/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${FILESDIR}/delegated.sh \
${STAGEDIR}${PREFIX}/etc/rc.d/delegated.sh-dist
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
post-install:
# Re-sign the executable
@${MKDIR} ${WRKDIR}/tmp
@${CP} ${STAGEDIR}${PREFIX}/sbin/delegated ${WRKDIR}/tmp/dg
@${CHMOD} +w ${STAGEDIR}${PREFIX}/sbin/delegated
@${WRKDIR}/tmp/dg -Fesign -w ${STAGEDIR}${PREFIX}/sbin/delegated
@${CHMOD} -w ${STAGEDIR}${PREFIX}/sbin/delegated
.include <bsd.port.mk>
|