aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2006-08-15 02:12:52 +0800
committersobomax <sobomax@FreeBSD.org>2006-08-15 02:12:52 +0800
commit9da8fa84a9fe0128531a88c8ef9378874a6501b8 (patch)
treeb1e2e68f52a5c1357c740c94826d24e03c03e306 /misc
parentb0b9d83b6178b509ed05f7158f5739cfb0fc4060 (diff)
downloadfreebsd-ports-gnome-9da8fa84a9fe0128531a88c8ef9378874a6501b8.tar.gz
freebsd-ports-gnome-9da8fa84a9fe0128531a88c8ef9378874a6501b8.tar.zst
freebsd-ports-gnome-9da8fa84a9fe0128531a88c8ef9378874a6501b8.zip
Convert to rcNG.
PR: 101958 Submitted by: Anish Mistry
Diffstat (limited to 'misc')
-rw-r--r--misc/zaptel/Makefile10
-rw-r--r--misc/zaptel/files/zaptel.sh36
-rw-r--r--misc/zaptel/pkg-message28
-rw-r--r--misc/zaptel/pkg-plist1
4 files changed, 3 insertions, 72 deletions
diff --git a/misc/zaptel/Makefile b/misc/zaptel/Makefile
index 4a09f215790f..f923a28fe819 100644
--- a/misc/zaptel/Makefile
+++ b/misc/zaptel/Makefile
@@ -20,13 +20,14 @@ 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
+SUB_FILES= pkg-message
+USE_RC_SUBR= zaptel
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-IGNORE= "does not build on FreeBSD \< 5.x"
+IGNORE= does not build on FreeBSD \< 5.x
.endif
pre-everything::
@@ -42,15 +43,10 @@ post-patch:
${WRKSRC}/ztcfg/ztcfg.c
pre-su-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.post.mk>
diff --git a/misc/zaptel/files/zaptel.sh b/misc/zaptel/files/zaptel.sh
deleted file mode 100644
index 4356f95d1374..000000000000
--- a/misc/zaptel/files/zaptel.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-PREFIX=%%PREFIX%%
-LIBDIR=${PREFIX}/lib/zaptel
-
-case "$1" in
- start)
- /sbin/kldload ${LIBDIR}/zaptel.ko || exit 1
- /sbin/kldload ${LIBDIR}/qozap.ko || exit 1
- /sbin/kldload ${LIBDIR}/wcfxo.ko || exit 1
- /sbin/kldload ${LIBDIR}/wcfxs.ko || exit 1
- /sbin/kldload ${LIBDIR}/wct1xxp.ko || exit 1
- /sbin/kldload ${LIBDIR}/wct4xxp.ko || exit 1
- /sbin/kldload ${LIBDIR}/wcte11xp.ko || exit 1
- ${PREFIX}/bin/ztcfg
- echo -n " zaptel"
- ;;
-
- stop)
- /sbin/kldunload qozap.ko || exit 1
- /sbin/kldunload wcfxs.ko || exit 1
- /sbin/kldunload wcfxo.ko || exit 1
- /sbin/kldunload wct1xxp.ko || exit 1
- /sbin/kldunload wct4xxp.ko || exit 1
- /sbin/kldunload wcte11xp.ko || exit 1
- /sbin/kldunload zaptel.ko || exit 1
- echo -n " zaptel"
- ;;
-
- *)
- echo ""
- echo "Usage: `basename $0` { start | stop }"
- echo ""
- exit 64
- ;;
-esac
diff --git a/misc/zaptel/pkg-message b/misc/zaptel/pkg-message
deleted file mode 100644
index b74305863234..000000000000
--- a/misc/zaptel/pkg-message
+++ /dev/null
@@ -1,28 +0,0 @@
--------------------------------------------------------------------------------
-IMPORTANT! MAKE SURE TO READ THE FOLLOWING!
-
-To use the driver, make a copy of %%PREFIX%%/etc/rc.d/zaptel.sh.sample
-under %%PREFIX%%/etc/rc.d/zaptel.sh.
-
-To load the driver run (as root):
-
-# %%PREFIX%%/etc/rc.d/zaptel.sh start
-
-To unload it:
-
-# %%PREFIX%%/etc/rc.d/zaptel.sh stop
-
-It'll also load the driver automatically when the system is started.
-
-Report problems to Alexander Timoshenko <gonzo@pbxpress.com>. Please note that
-it is still "work in progress" so that your bug reports are welcome and will
-help to improve quality of the drivers.
-
-Great thanks to all companies and individuals who made this driver happen,
-including but not limited to, John Todd, Chris Coleman, Alexander Timoshenko,
-PBXpress, Inc, Max Khon, LF.net, Luigi Rizzo and others contributors.
-
-Thanks and enjoy!
-
--Maxim
--------------------------------------------------------------------------------
diff --git a/misc/zaptel/pkg-plist b/misc/zaptel/pkg-plist
index fb3e1b5c7628..debb163c15f3 100644
--- a/misc/zaptel/pkg-plist
+++ b/misc/zaptel/pkg-plist
@@ -3,7 +3,6 @@ bin/ztcfg
bin/ztmonitor
bin/zttest
bin/zttool
-etc/rc.d/zaptel.sh.sample
include/tonezone.h
include/zaptel.h
lib/libtonezone.a