freebsd-ports/security/wpa_supplicant/Makefile
Brooks Davis b5da416890 - Update to 0.3.8. See ChangeLog for details.
- Install sample config file in etc/wpa_supplication.conf.sample instead
  of DOCSDIR.
- Obey PREFIX.
- Follow move of binaries from bin to sbin.

Committed from a laptop running this version against an AP with WPA-PSK
and AES encription.

Submitted by:	Yamamoto Shigeru <shigeru at iij dot ad dot jp>
PR:		75609 (by Rong-En Fan <rafan at infor dot org>)
2005-02-16 07:03:32 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: wpa_supplicant
# Date created: 7 December 2004
# Whom: sam
#
# $FreeBSD$
#
PORTNAME= wpa_supplicant
PORTVERSION= 0.3.8
CATEGORIES= security net
MASTER_SITES= http://hostap.epitest.fi/releases/
MAINTAINER= ports@FreeBSD.org
COMMENT= Supplicant (client) for WPA/802.1x protocols
USE_REINPLACE= yes
BUILD_DEPENDS= ${LOCALBASE}/lib/libdnet.a:${PORTSDIR}/net/libdnet
PLIST_FILES= sbin/wpa_supplicant \
sbin/wpa_passphrase \
sbin/wpa_cli
PLIST_FILES+= etc/${PORTNAME}.conf.sample
.if !defined(NOPORTDOCS)
DOCFILES= README \
ChangeLog
PLIST_FILES+= ${DOCFILES:S,^,%%DOCSDIR%%/,}
PLIST_DIRS+= %%DOCSDIR%%
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_GMAKE= yes
post-patch:
@${CP} ${FILESDIR}/config.bsd ${WRKSRC}/.config
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/.config
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
@${INSTALL_DATA} ${WRKSRC}/wpa_supplicant.conf ${PREFIX}/etc/wpa_supplicant.conf.sample
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600007
IGNORE=is not supported on FreeBSD < 6.0
.endif
.include <bsd.port.post.mk>