freebsd-ports/net/skystar2/Makefile
Pietro Cerutti 2130a97d8f - Update to 12 [1]
- Handle case when KMODDIR does not exist before port installation

PR:		124854 [1]
Submitted by:	Alex Keda <admin@lissyara.su> (maintainer) [1]
2008-07-08 22:44:04 +00:00

46 lines
1.1 KiB
Makefile

# New ports collection makefile for: SkyStar2
# Date created: 15 November 2007
# Whom: Alex Keda <admin@lissyara.su>
#
# $FreeBSD$
#
PORTNAME= skystar2
PORTVERSION= 12
CATEGORIES= net
MASTER_SITES= http://paradox.org.ua/ \
http://lissyara.su/patch/skystar2/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= admin@lissyara.su
COMMENT= Kernel module and program for SkyStar2, ver. ${PORTVERSION}
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
SYSDIR?= ${SRC_BASE}/sys
KMODDIR= /boot/modules
PLIST_SUB+= KMODDIR=${KMODDIR}
PORTDOCS= readme
pre-fetch:
.if !exists(${SYSDIR}/Makefile)
@${ECHO} "*************************************************"; \
${ECHO} "This port requires the kernel source be available"; \
${ECHO} "*************************************************"; \
exit 1
.endif
pre-install:
${INSTALL} -d ${KMODDIR}
post-install:
@${INSTALL_DATA} ${WRKSRC}/etc/channels.conf.dist ${PREFIX}/etc/
@${CAT} ${PKGMESSAGE}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>