-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
47 lines (36 loc) · 1.35 KB
/
Makefile
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
PORTNAME= xinetd
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 2-3-15
PORTREVISION= 4
CATEGORIES= security
MAINTAINER= ports@MidnightBSD.org
COMMENT= Replacement for inetd with better control and logging
WWW= https://github.com/xinetd-org/xinetd
LICENSE= XINETD
LICENSE_NAME= xinetd license
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
FAKE_OPTS= prefixhack
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}-org
GNU_CONFIGURE= yes
USE_RC_SUBR= xinetd
ALL_TARGET= build
CONFIGURE_ARGS+= --with-loadavg
USES= cpe shebangfix perl5
USE_PERL5= run
SHEBANG_FILES= ${WRKSRC}/xinetd/xconv.pl
OPTIONS_DEFINE= IPV6 LIBWRAP
OPTIONS_DEFAULT= LIBWRAP
IPV6_CONFIGURE_WITH= ipv6
LIBWRAP_CONFIGURE_WITH= libwrap
post-patch:
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/xinetd/xconfig.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xinetd/xinetd ${STAGEDIR}${PREFIX}/sbin/xinetd
${INSTALL_SCRIPT} ${WRKSRC}/xinetd/xconv.pl ${STAGEDIR}${PREFIX}/bin/xconv
${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.conf.man ${STAGEDIR}${PREFIX}/man/man5/xinetd.conf.5
${INSTALL_MAN} ${WRKSRC}/xinetd/xconv.pl.8 ${STAGEDIR}${PREFIX}/man/man8/xconv.8
${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.man ${STAGEDIR}${PREFIX}/man/man8/xinetd.8
${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.log.man ${STAGEDIR}${PREFIX}/man/man8/xinetd.log.8
.include <bsd.port.mk>