freebsd-ports/misc/zaptel/Makefile
Maxim Sobolev 33f57ea588 Improve compatibility with 4.x, particularly:
o Don't use devinfo(8) in startup script, since it doesn't exist on 4.x. Use
  pciinfo(8) instead.

o In zaptel driver don't require a specific major on the 5.x system that
  support auto major numbering;

o Assign specific majors to wcfxs and wcfxo drivers on systems that don't
  support auto major numbering;

o Ensure that nodes are created properly on non-devfs systems.
2004-10-26 14:06:06 +00:00

47 lines
1.2 KiB
Makefile

# Ports collection makefile for: zaptel
# Date created: 29 April 2004
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= zaptel
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.portaone.com/~sobomax/
DISTNAME= ${PORTNAME}-freebsd-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
COMMENT= A FreeBSD Driver for Digium X100P/TDM400P Telephony Cards
LIB_DEPENDS= newt.51:${PORTSDIR}/devel/newt
NO_PACKAGE= Should be in sync with the kernel to work correctly
ONLY_FOR_ARCHS= i386
PKGMESSAGE= ${WRKSRC}/.MESSAGE
MAKE_ENV= KMODDIR=${PREFIX}/lib/zaptel
pre-everything::
@if [ ! -f /usr/src/sys/Makefile ]; then \
${ECHO_MSG} ">> The zaptel port needs FreeBSD kernel source code to compile."; \
${ECHO_MSG} ">> Please install FreeBSD kernel source code in /usr/src/sys."; \
${FALSE}; \
fi
pre-install:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
${PKGMESSAGE}
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/zaptel.sh > \
${WRKDIR}/zaptel.sh.sample
@${MKDIR} ${PREFIX}/lib/zaptel
post-install:
@${TOUCH} ${PREFIX}/lib/zaptel/linker.hints
@${INSTALL_SCRIPT} ${WRKDIR}/zaptel.sh.sample ${PREFIX}/etc/rc.d
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>