From cb8df08d64844c54c118e122c30a0e50c73055e5 Mon Sep 17 00:00:00 2001 From: wulf Date: Mon, 15 May 2000 10:54:44 +0000 Subject: Initial import of pkgsrc/ham/dpbox: dpbox-6.00.00 Multi-Protocol Amateur Packet Radio BBS --- ham/dpbox/Makefile | 32 ++++++++++++ ham/dpbox/files/dpbox.ini | 78 +++++++++++++++++++++++++++++ ham/dpbox/files/md5 | 3 ++ ham/dpbox/files/patch-sum | 3 ++ ham/dpbox/patches/patch-aa | 108 ++++++++++++++++++++++++++++++++++++++++ ham/dpbox/pkg/COMMENT | 1 + ham/dpbox/pkg/DEINSTALL | 17 +++++++ ham/dpbox/pkg/DESCR | 3 ++ ham/dpbox/pkg/PLIST | 121 +++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 366 insertions(+) create mode 100644 ham/dpbox/Makefile create mode 100644 ham/dpbox/files/dpbox.ini create mode 100644 ham/dpbox/files/md5 create mode 100644 ham/dpbox/files/patch-sum create mode 100644 ham/dpbox/patches/patch-aa create mode 100644 ham/dpbox/pkg/COMMENT create mode 100644 ham/dpbox/pkg/DEINSTALL create mode 100644 ham/dpbox/pkg/DESCR create mode 100644 ham/dpbox/pkg/PLIST (limited to 'ham') diff --git a/ham/dpbox/Makefile b/ham/dpbox/Makefile new file mode 100644 index 00000000000..11b8d1016cf --- /dev/null +++ b/ham/dpbox/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/05/15 10:54:44 wulf Exp $ +# + +DISTNAME= dpbox-60000 +PKGNAME= dpbox-6.00.00 +WRKSRC= ${WRKDIR}/dpbox-6.00.00/source +CATEGORIES= ham +MASTER_SITES= ftp://ftp.ping.net.au/pub/unix/ham/ + +MAINTAINER= wulf@netbsd.org +HOMEPAGE= http://userpgages.fu-berlin.de/ + +LICENSE= no-commercial-use + +USE_GMAKE= yes +MAKEFILE= Makefile.netbsd + +.include "../../mk/bsd.prefs.mk" + +DPBOX_CONF_DIR= ${PREFIX}/share/dpbox/conf +DPBOX_SPOOL_DIR=/var/spool/dpbox +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL + +post-build: + @cd ${PKGDIR}; \ + ${SED} -e 's#@DPBOX_CONF_DIR@#${DPBOX_CONF_DIR}#g' \ + -e 's#@DPBOX_SPOOL_DIR@#${DPBOX_SPOOL_DIR}#g' \ + < DEINSTALL > ${WRKDIR}/DEINSTALL; \ + ${SED} -e 's#@prefix@#${PREFIX}#g' \ + < ${FILESDIR}/dpbox.ini > ${WRKDIR}/dpbox-6.00.00/dpbox.ini + +.include "../../mk/bsd.pkg.mk" diff --git a/ham/dpbox/files/dpbox.ini b/ham/dpbox/files/dpbox.ini new file mode 100644 index 00000000000..22b49555d52 --- /dev/null +++ b/ham/dpbox/files/dpbox.ini @@ -0,0 +1,78 @@ +# dpbox.ini +# edited: Joachim Schurig, DL8HBS, 26.09.1999 +# +# This is the first configuration file DPBOX will read +# Take care, if something is missing or misconfigured, +# DPBOX will NOT start. +# +# After reading this config file (it only defines the basic unix +# setup of the system), DPBOX will read the file system/config.box +# (and all other files in the subdirectory system/ ). Those files +# define the amateur radio settings of DPBOX. Please check them and +# set them up carefully. + +# THIS FILE CANNOT BE REREAD WHILE DPBOX IS RUNNING! +# If you change any of the settings, you have to restart dpbox to +# accept the changes. The configuration data in all other files +# can be reloaded by sending a -SIGHUP to dpbox or by typing +# RELOAD in the mailbox itself. + +# Unix user for DPBOX: +# DPBOX can only change to this user if started as root... +# If DPBOX is not started as root, please comment out the following line +dpbox_user dpbox + +# own callsign (CHANGE IT TO THE CALLSIGN FOR DPBOX) : +Console_call AN0NYM + +# SSID of box +box_ssid 7 + +# own QTH-loc: +# put in your WW-Locator. +myqthwwloc JO62RL + +# packet length: +# 236 for TNN/NetRom networks, 255 for other +# (not 256, the huffman compression needs a byte) +box_paclen 236 + +# main box directory: +# usually, don't change it, except if you plan to start more than one DPBOX... +boxdir /var/spool/dpbox/ + +# directory for temporary files: +# usually, don't change it, except if you plan to start more than one DPBOX... +tempdir /tmp/ + +# name of socket for interface +# usually, don't change it, except if you plan to start more than one DPBOX... +box_socket /var/run/dpbox + +# +# system files directory +# +boxsysdir @prefix@/share/dpbox/conf/system/ + +# +# S/F directory +# +boxsfdir @prefix@/share/dpbox/conf/sf/ + +# +# language files directory +# +boxlanguagedir @prefix@/share/dpbox/language/ + +# +# run files directory +# +boxrundir @prefix@/libexec/dpbox/ + +# directory for dpbox-pid-file +# usually, don't change it +boxprocdir /var/run/ + +# filename of dpbox-pid-file +# usually, don't change it, except if you plan to start more than one DPBOX... +proc_file dpbox.pid diff --git a/ham/dpbox/files/md5 b/ham/dpbox/files/md5 new file mode 100644 index 00000000000..6510d4721b0 --- /dev/null +++ b/ham/dpbox/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/05/15 10:54:44 wulf Exp $ + +MD5 (dpbox-60000.tar.gz) = f8e65464ae8ee4d78c62861cbba54e2c diff --git a/ham/dpbox/files/patch-sum b/ham/dpbox/files/patch-sum new file mode 100644 index 00000000000..1ce35eb1cf1 --- /dev/null +++ b/ham/dpbox/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/05/15 10:54:44 wulf Exp $ + +MD5 (patch-aa) = 7e8fa40fe8bb76bfb7a7f495e4562da3 diff --git a/ham/dpbox/patches/patch-aa b/ham/dpbox/patches/patch-aa new file mode 100644 index 00000000000..51c1a057617 --- /dev/null +++ b/ham/dpbox/patches/patch-aa @@ -0,0 +1,108 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/05/15 10:54:45 wulf Exp $ + +--- Makefile.netbsd.orig Thu Apr 27 22:18:57 2000 ++++ Makefile.netbsd Mon May 15 20:05:31 2000 +@@ -1,9 +1,9 @@ + ############################################################################### + # # +-# This is the Makefile of dpbox-5.08 for NetBSD # ++# This is the Makefile of dpbox-6.00.00 for NetBSD # + # # +-# Version: 1.0.0 # +-# Date : 16 September 1999 # ++# Version: 1.2.0 # ++# Date : 15 May 2000 # + # Author : Berndt Josef Wulf, VK5ABN # + # # + ############################################################################### +@@ -19,11 +19,13 @@ + INSTALL_CONF = ${INSTALL} -m 440 + MKDIR = mkdir -p + LN = ln -sf +- ++CHMOD = /bin/chmod ++SED = /usr/bin/sed + prefix = /usr/pkg + bindir = $(prefix)/bin + sbindir = $(prefix)/sbin + confdir = $(prefix)/share/dpbox/conf ++exampledir = $(prefix)/share/examples/dpbox/conf + docdir = $(prefix)/share/doc/dpbox + landir = $(prefix)/share/dpbox/language + spooldir = /var/spool/dpbox +@@ -100,7 +102,8 @@ + $(INSTALL_PROGRAM) dpputlinks $(bindir) + $(INSTALL_PROGRAM) dpcodeconv $(bindir) + $(INSTALL_PROGRAM) dpmybbs $(bindir) +- $(INSTALL) -m 555 ../cgi/dpboxcgi/dphttp $(bindir) ++ $(SED) "s,/installdir,$(bindir)," < ../cgi/dpboxcgi/dphttp > $(bindir)/dphttp ++ $(CHMOD) 555 $(bindir)/dphttp + + $(MKDIR) $(docdir) + $(INSTALL_DATA) ../document/* $(docdir) +@@ -148,6 +151,9 @@ + echo "* and manually adjust the configuration files where *"; \ + echo "* necessary. *"; \ + echo "* *"; \ ++ echo "* A number of example configuration files can be found *"; \ ++ echo "* in the ${exampledir} directory. *"; \ ++ echo "* *"; \ + echo "***********************************************************"; \ + else \ + $(MKDIR) $(confdir); \ +@@ -158,9 +164,20 @@ + $(INSTALL_CONF) ../sf/* $(confdir)/sf; \ + fi + ++ $(MKDIR) $(exampledir); \ ++ $(INSTALL_CONF) ../dpbox.ini $(exampledir)/dpbox.ini; \ ++ $(MKDIR) $(exampledir)/system; \ ++ $(INSTALL_CONF) ../system/* $(exampledir)/system ; \ ++ $(MKDIR) $(exampledir)/sf ; \ ++ $(INSTALL_CONF) ../sf/* $(exampledir)/sf; \ ++ + @if [ -e ${cgidir} ]; then \ + echo "installing cgi-scripts"; \ +- $(INSTALL) -m 755 ../cgi/cgi/* $(cgidir); \ ++ for i in `ls -1 ../cgi/cgi`; \ ++ do \ ++ $(SED) "s,/installdir,$(bindir)," < ../cgi/cgi/$$i > $(cgidir)/$$i; \ ++ $(CHMOD) 555 $(cgidir)/$$i; \ ++ done; \ + $(INSTALL_DATA) ../cgi/dpboxcgi/*.html $(cgidir); \ + fi + +@@ -171,11 +188,23 @@ + $(INSTALL_DATA) ../cgi/dpbox/pic/* $(httpdir)/dpbox/pic; \ + fi + +- @echo +- @echo dpbox installation complete +- @echo +- @echo Now edit the configuration files in $(confdir) and +- @echo $(confdir)/dpbox.ini!!! ++ @echo ++ @echo "***********************************************************" ++ @echo "* *" ++ @echo "* The installation of dpbox is now completed. *" ++ @echo "* *" ++ @echo "* Please read the documentation provided with this *" ++ @echo "* package carefully and edit all configuration files *" ++ @echo "* to reflect your system setup! *" ++ @echo "* *" ++ @echo "* The documentation can be found in *" ++ @echo "* $(docdir) *" ++ @echo "* *" ++ @echo "* The configuration files are located in *" ++ @echo "* $(confdir) *" ++ @echo "* *" ++ @echo "***********************************************************" ++ @echo + + clean: + $(RM) *.o *~ .*~ *.orig *.bak *.s *.core +@@ -193,4 +222,3 @@ + ifeq (.depend,$(wildcard .depend)) + include .depend + endif +- diff --git a/ham/dpbox/pkg/COMMENT b/ham/dpbox/pkg/COMMENT new file mode 100644 index 00000000000..5d830542961 --- /dev/null +++ b/ham/dpbox/pkg/COMMENT @@ -0,0 +1 @@ +Multi-Protocol Amateur Packet Radio BBS diff --git a/ham/dpbox/pkg/DEINSTALL b/ham/dpbox/pkg/DEINSTALL new file mode 100644 index 00000000000..e930bd2d12d --- /dev/null +++ b/ham/dpbox/pkg/DEINSTALL @@ -0,0 +1,17 @@ +# $NetBSD: DEINSTALL,v 1.1.1.1 2000/05/15 10:54:44 wulf Exp $ +# + +case "$2" in + DEINSTALL) cat <