2013-04-26 12:35:50 +00:00
|
|
|
# Created by: Guerkan Karaman <gk.freebsd@googlemail.com>
|
2010-08-12 20:20:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gpxe
|
|
|
|
PORTVERSION= 1.0.1
|
2013-09-02 16:34:22 +00:00
|
|
|
PORTREVISION= 2
|
2010-08-12 20:20:23 +00:00
|
|
|
CATEGORIES= net
|
2013-09-02 16:34:22 +00:00
|
|
|
MASTER_SITES= http://etherboot.org/rel/gpxe/ \
|
|
|
|
http://slackware.cs.utah.edu/pub/kernel.org/pub/software/utils/boot/gpxe/
|
2010-08-12 20:20:23 +00:00
|
|
|
|
|
|
|
MAINTAINER= gk.freebsd@googlemail.com
|
2014-04-21 08:09:57 +00:00
|
|
|
COMMENT= Open Source (GPL) gPXE network bootloader
|
2014-02-08 09:29:17 +00:00
|
|
|
|
2010-08-12 20:20:23 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-04-21 08:09:57 +00:00
|
|
|
BUILD_DEPENDS= syslinux:${PORTSDIR}/sysutils/syslinux \
|
|
|
|
mkisofs:${PORTSDIR}/sysutils/cdrtools
|
2011-09-26 01:15:34 +00:00
|
|
|
|
2013-09-02 16:34:22 +00:00
|
|
|
USES= gmake perl5
|
2015-05-25 14:50:45 +00:00
|
|
|
MAKE_ARGS= PERL=${PERL}
|
2010-08-12 20:20:23 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
|
|
|
PLIST_FILES= %%DATADIR%%/gpxe.dsk \
|
|
|
|
%%DATADIR%%/gpxe.usb \
|
|
|
|
%%DATADIR%%/gpxe.iso
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2013-04-26 12:35:50 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2011-09-26 01:15:34 +00:00
|
|
|
|
2011-12-22 11:15:30 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
ONLY_FOR_ARCHS_REASON= not yet ported to anything other than amd64/i386
|
2011-11-11 03:23:50 +00:00
|
|
|
|
2014-04-21 08:09:57 +00:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
|
|
|
|
BROKEN= does not build on FreeBSD 10.x and later
|
|
|
|
.endif
|
|
|
|
|
2011-09-26 01:15:34 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
MAKE_ARGS+= ARCH=i386
|
|
|
|
.endif
|
|
|
|
|
2014-04-21 08:09:57 +00:00
|
|
|
ISOLINUX_BIN?= ${LOCALBASE}/share/syslinux/bios/core/isolinux.bin
|
|
|
|
|
2010-08-12 20:20:23 +00:00
|
|
|
post-patch:
|
2014-04-21 08:09:57 +00:00
|
|
|
@${REINPLACE_CMD} "s|%%WRKSRC%%|${WRKSRC}|" ${WRKSRC}/arch/i386/Makefile
|
2010-08-12 20:20:23 +00:00
|
|
|
|
2014-04-21 08:09:57 +00:00
|
|
|
pre-build:
|
|
|
|
# ISO creation fails if isolinux.bin is read only
|
|
|
|
${INSTALL} -m 644 ${ISOLINUX_BIN} ${WRKSRC}
|
2010-08-12 20:20:23 +00:00
|
|
|
|
2014-04-21 08:09:57 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.dsk ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.usb ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.iso ${STAGEDIR}${DATADIR}
|
2010-08-12 20:20:23 +00:00
|
|
|
|
2013-04-26 12:35:50 +00:00
|
|
|
.include <bsd.port.mk>
|