- Install trafshow.conf into ${PREFIX}/lib/trafshow
- Fake
This commit is contained in:
parent
87b27532c0
commit
cba63ae97f
@ -3,24 +3,29 @@
|
||||
# Date created: 28 Jan 1998
|
||||
# Whom: mickey
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.6 2000/04/09 17:37:38 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2000/04/23 15:35:38 kevlo Exp $
|
||||
#
|
||||
|
||||
DISTNAME= trafshow-3.1
|
||||
CATEGORIES= net
|
||||
FAKE=No
|
||||
MASTER_SITES= ftp://ftp.nsk.su/pub/RinetSoft/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= mickey@openbsd.org
|
||||
|
||||
LICENSE_TYPE= BSD
|
||||
PERMIT_PACKAGE_CDROM= YES
|
||||
PERMIT_PACKAGE_FTP= YES
|
||||
PERMIT_DISTFILES_CDROM= YES
|
||||
PERMIT_DISTFILES_FTP= YES
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
GNU_CONFIGURE=YES
|
||||
MAN1= trafshow.1
|
||||
GNU_CONFIGURE= Yes
|
||||
FAKE= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/trafshow
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/lib/trafshow/trafshow.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.in.orig Mon Aug 24 00:54:16 1998
|
||||
+++ Makefile.in Fri Aug 28 11:27:04 1998
|
||||
--- Makefile.in.orig Mon Apr 24 07:23:00 2000
|
||||
+++ Makefile.in Mon Apr 24 07:23:24 2000
|
||||
@@ -55,6 +55,8 @@
|
||||
|
||||
CLEANFILES = $(PROG) $(OBJ) $(GENSRC)
|
||||
@ -9,12 +9,3 @@
|
||||
$(PROG): $(OBJ) @V_PCAPDEP@
|
||||
@rm -f $@
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
|
||||
@@ -70,7 +72,7 @@
|
||||
install: force
|
||||
./install-sh -c -s -m 550 -o bin -g @V_GROUP@ $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
|
||||
./install-sh -c -m 444 -o bin -g bin $(PROG).1 $(DESTDIR)$(MANDEST)/man1/$(PROG).1
|
||||
- ./install-sh -c -o root -m 644 .trafshow /etc/$(PROG)
|
||||
+ ./install-sh -c -o root -m 644 .trafshow /etc/$(PROG).sample
|
||||
|
||||
clean:
|
||||
rm -f $(CLEANFILES)
|
||||
|
24
net/trafshow/pkg/DEINSTALL
Normal file
24
net/trafshow/pkg/DEINSTALL
Normal file
@ -0,0 +1,24 @@
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2000/04/23 15:35:48 kevlo Exp $
|
||||
#
|
||||
# trafshow de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=/etc/trafshow.conf
|
||||
|
||||
if [ -f ${CONFIG_FILE} ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -f ${CONFIG_FILE}"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
68
net/trafshow/pkg/INSTALL
Normal file
68
net/trafshow/pkg/INSTALL
Normal file
@ -0,0 +1,68 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 2000/04/23 15:35:48 kevlo Exp $
|
||||
#
|
||||
# Pre/post-installation setup of trafshow
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=/etc/trafshow.conf
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration file, ${CONFIG_FILE},"
|
||||
echo "| has NOT been changed. You may want to compare it to the"
|
||||
echo "| current sample file, ${PREFIX}/lib/trafshow/trafshow.sample,"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# Function: install the system trafshow.conf from the sample
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
cp ${PREFIX}/lib/trafshow/trafshow.sample ${CONFIG_FILE}
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The $1 configuration file, ${CONFIG_FILE},"
|
||||
echo "| has been installed. Please view this file and change"
|
||||
echo "| the configuration to meet your needs"
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -f $CONFIG_FILE ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,2 +1,4 @@
|
||||
bin/trafshow
|
||||
man/man1/trafshow.1
|
||||
lib/trafshow/trafshow.sample
|
||||
@dirrm lib/trafshow
|
||||
|
Loading…
Reference in New Issue
Block a user