blob: ce926efc74cbf84693cebce957951f6cf7c648c9 (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.36 2012/07/20 09:58:36 adam Exp $
DISTNAME= tcp_wrappers_7.6-ipv6.4
PKGNAME= ${DISTNAME:S/_7.6-ipv6/-7.6/}
CATEGORIES= security net
MASTER_SITES= ftp://ftp.porcupine.org/pub/security/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ftp://ftp.porcupine.org/pub/security/index.html
COMMENT= Monitor and filter incoming requests for network services
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.tcp_wrappers
PKG_SUPPORTED_OPTIONS= inet6
PKG_SUGGESTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
BUILD_TARGET.${OPSYS}?= generic # good luck!
BUILD_TARGET.Darwin= netbsd
BUILD_TARGET.Interix= netbsd
BUILD_TARGET.Linux= ${LOWER_OPSYS}
.if !empty(OPSYS:M*BSD)
BUILD_TARGET.${OPSYS}= netbsd
.endif
BUILD_TARGET.SunOS= sunos5
BUILD_TARGET.IRIX= irix5
BUILD_TARGET= ${BUILD_TARGET.${OPSYS}}
.if !empty(PKG_OPTIONS:Minet6)
. if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
MAKE_ENV+= IPV6="-DHAVE_IPV6 -DUSE_GETHOSTBYNAME2"
. elif ${OPSYS} != "Linux" && ${OPSYS} != "Interix"
MAKE_ENV+= IPV6=-DHAVE_IPV6
. endif
.endif
# Default to /etc/hosts.{allow,deny} for the configuration files to match
# the historic location of these files. This may be changed by setting
# PKG_SYSCONFDIR.tcp_wrappers to a different value in /etc/mk.conf.
#
PKG_SYSCONFDIR.tcp_wrappers?= /etc
MAKE_ENV+= PKGSYSCONFDIR=${PKG_SYSCONFDIR}
INSTALLATION_DIRS= bin include lib libexec ${PKGMANDIR}/man3 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
post-build:
set -e; cd ${WRKSRC}; for file in *.[0-9]; do \
${MV} -f $$file $$file.BAK; \
${SED} -e "s|/etc/hosts\.|${PKG_SYSCONFDIR}/hosts.|g" \
$$file.BAK > $$file; \
done
DOCDIR= ${PREFIX}/share/doc/tcp_wrappers
INSTALLATION_DIRS+= ${DOCDIR}
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} \
${WRKSRC}/libwrap.la ${DESTDIR}${PREFIX}/lib
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
${WRKSRC}/tcpdchk ${WRKSRC}/tcpdmatch ${WRKSRC}/try-from \
${WRKSRC}/safe_finger ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/tcpd.h ${DESTDIR}${PREFIX}/include
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
${WRKSRC}/tcpd ${DESTDIR}${PREFIX}/libexec
${INSTALL_DATA} ${WRKSRC}/*.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
${INSTALL_DATA} ${WRKSRC}/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
${INSTALL_DATA} ${WRKSRC}/*.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README.NIS \
${WRKSRC}/README.ipv6 ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"
|