openbsd-ports/net/maradns/devel/patches/patch-build_install_sh
2003-05-04 17:29:56 +00:00

73 lines
2.0 KiB
Plaintext

$OpenBSD: patch-build_install_sh,v 1.2 2003/05/04 17:29:57 margarida Exp $
--- build/install.sh.orig Fri Jan 10 21:32:09 2003
+++ build/install.sh Sun May 4 18:17:47 2003
@@ -86,6 +86,13 @@ if [ -f $SBIN/zoneserver ] ; then
fi
cp zoneserver $SBIN
+# Install duende
+cd $TOPLEVEL/tools
+if [ -f $BIN/duende ] ; then
+ rm $BIN/duende
+fi
+cp duende $BIN
+
# Install the askmara binary
cd $TOPLEVEL/tools
if [ -f $BIN/askmara ] ; then
@@ -100,7 +107,7 @@ else
cd $TOPLEVEL/doc/en/man
fi
cp askmara.1 getzone.1 $MAN1
-cp maradns.8 zoneserver.8 $MAN8
+cp duende.8 maradns.8 zoneserver.8 $MAN8
cp csv1.5 mararc.5 $MAN5
# Place all the documents in $DOCS
@@ -108,44 +115,4 @@ cd ..
mkdir $DOCS > /dev/null 2>&1
cp -r * $DOCS
cd $TOPLEVEL
-cp maradns.pgp.key $DOCS
-
-# If the system in question does not already have configuration files,
-# place example configuration files in /etc
-if [ -d docs/$LANGUAGE/examples ] ; then
- cd doc/$LANGUAGE/examples
-else
- cd doc/en/examples
-fi
-
-if [ ! -f $RPM_BUILD_ROOT/etc/mararc ] ; then
- cp example_mararc $RPM_BUILD_ROOT/etc/mararc
-fi
-if [ ! -d $RPM_BUILD_ROOT/etc/maradns ] ; then
- mkdir $RPM_BUILD_ROOT/etc/maradns
- chmod 755 $RPM_BUILD_ROOT/etc/maradns
-fi
-cp example_csv1 $RPM_BUILD_ROOT/etc/maradns/db.example.com
-
-# Finally, set up the startup files, as needed
-# Go back to the top-level MaraDNS directory
-cd $TOPLEVEL
-# And copy over the init files if this system looks to be a sysVish init
-# system
-if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d ] ; then
- echo Adding MaraDNS startup scripts
- if [ ! -f $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns ] ; then
- cp $BUILDDIR/mara.startup $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns
- fi
- if cd $RPM_BUILD_ROOT/etc/rc.d/rc3.d/ ; then
- echo Starting up MaraDNS at runlevel 3
- rm S60maradns
- ln -s ../init.d/maradns S60maradns
- fi
- if cd $RPM_BUILD_ROOT/etc/rc.d/rc5.d/ ; then
- echo starting up MaraDNS at runlevel 5
- rm S60maradns
- ln -s ../init.d/maradns S60maradns
- fi
-fi
-
+cp maradns.gpg.key $DOCS