blob: 58fa7932e62e12060502c1ad0f1fde36f9d843d5 (
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
|
# $NetBSD: Makefile,v 1.18 2017/10/16 10:26:21 maya Exp $
#
DISTNAME= wpa_supplicant-2.6
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://hostap.epitest.fi/releases/
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://hostap.epitest.fi/wpa_supplicant/
COMMENT= Wireless connection client daemon for WPA, WPA2, and WEP
LICENSE= modified-bsd
USE_LANGUAGES= c
USE_TOOLS+= gmake
BUILD_DIRS= wpa_supplicant
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
PKG_OPTIONS_VAR= PKG_OPTIONS.wpa_supplicant
PKG_SUPPORTED_OPTIONS= dbus
PKG_SUGGESTED_OPTIONS= dbus
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdbus)
USE_TOOLS+= pkg-config
.endif
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD"
CPPFLAGS+= -DNEW_FREEBSD_MLME_ASSOC
.endif
post-extract:
${CP} ${FILESDIR}/defconfig ${WRKSRC}/wpa_supplicant/.config
[ ! -e ${FILESDIR}/defconfig.${OPSYS} ] || \
${CAT} ${FILESDIR}/defconfig.${OPSYS} >> ${WRKSRC}/wpa_supplicant/.config
.if !empty(PKG_OPTIONS:Mdbus)
${ECHO} CONFIG_CTRL_IFACE_DBUS=y >> ${WRKSRC}/wpa_supplicant/.config
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wpa_supplicant/wpa_cli \
${DESTDIR}${PREFIX}/sbin/
${INSTALL_PROGRAM} ${WRKSRC}/wpa_supplicant/wpa_passphrase \
${DESTDIR}${PREFIX}/sbin/
${INSTALL_PROGRAM} ${WRKSRC}/wpa_supplicant/wpa_supplicant \
${DESTDIR}${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/wpa_supplicant/doc/docbook/wpa_supplicant.conf.5 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/
${INSTALL_MAN} ${WRKSRC}/wpa_supplicant/doc/docbook/wpa_cli.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_MAN} ${WRKSRC}/wpa_supplicant/doc/docbook/wpa_passphrase.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_MAN} ${WRKSRC}/wpa_supplicant/doc/docbook/wpa_supplicant.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus/buildlink3.mk"
.endif
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|