mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
78171b51ae
- Use ports framework for build: - Bonus: Now honours CC/CFLAGS/LDFLAGS - Remove DISTNAME override - Update LICENSE (GPLv2 not GPLv1) - Mark MAKE_JOBS_SAFE - Patch Makefile to see $(CC) not "CC" when not verbose - Pet portlint (LICENSE order) - while here shift where arch is tested, and use MAN{1,8}PREFIX PR: ports/169154 (based on) Submitted by: koobs.freebsd@gmail.com Approved by: maintainer, leres@ee.lbl.gov
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# New ports collection makefile for: hostapd
|
|
# Date created: 05 February 2011
|
|
# Whom: leres@ee.lbl.gov
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hostapd
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://hostap.epitest.fi/releases/
|
|
|
|
MAINTAINER= leres@ee.lbl.gov
|
|
COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
|
|
|
|
LICENSE= GPLv2 BSD
|
|
LICENSE_COMB= dual
|
|
|
|
USE_GMAKE= yes
|
|
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MAN1= hostapd_cli.1
|
|
MAN8= hostapd.8
|
|
|
|
PLIST_FILES= sbin/hostapd \
|
|
sbin/hostapd_cli
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64
|
|
.endif
|
|
|
|
post-patch-script:
|
|
@${REINPLACE_CMD} -e 's|@$$(E) " CC " $$<|@$$(E) " $$(CC) " $$<|' \
|
|
${BUILD_WRKSRC}/Makefile
|
|
|
|
do-configure:
|
|
${CP} ${FILESDIR}/config ${WRKSRC}/hostapd/.config
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd_cli ${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/hostapd/${MAN1} ${MAN1PREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/hostapd/${MAN8} ${MAN8PREFIX}/man/man8
|
|
|
|
.include <bsd.port.post.mk>
|