blob: a0e8f9b5ca0580476b270f411d452b0603bd27b7 (
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
|
PORTNAME= hostapd
PORTVERSION= 2.10
PORTREVISION= 5
CATEGORIES= net
MASTER_SITES= https://w1.fi/releases/
MAINTAINER= cy@FreeBSD.org
COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
WWW= https://w1.fi/hostapd/
LICENSE= BSD3CLAUSE
USES= cpe gmake ssl
CPE_VENDOR= w1.fi
BUILD_WRKSRC= ${WRKSRC}/hostapd
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
PLIST_FILES= sbin/hostapd sbin/hostapd_cli man/man1/hostapd_cli.1.gz \
man/man8/hostapd.8.gz
.if !exists(/etc/rc.d/hostapd)
USE_RC_SUBR= hostapd
.endif
post-patch:
@${REINPLACE_CMD} -e 's|@$$(E) " CC " $$<|@$$(E) " $$(CC) " $$<|' \
${BUILD_WRKSRC}/Makefile
@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/config \
>> ${WRKSRC}/hostapd/.config
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd_cli \
${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd_cli.1 \
${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd.8 \
${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>
|