$OpenBSD: patch-build_install_sh,v 1.4 2008/08/20 20:13:36 sturm Exp $ --- build/install.sh.orig Mon Aug 18 17:56:22 2008 +++ build/install.sh Mon Aug 18 17:57:31 2008 @@ -128,58 +128,3 @@ cp -r * $DOCS cd $TOPLEVEL cp maradns.gpg.key $DOCS -# If the system in question does not already have configuration files, -# place example configuration files in /etc -if [ -d doc/$LANGUAGE/examples ] ; then - cd doc/$LANGUAGE/examples -else - cd doc/en/examples -fi - -# $RPM_BUILD_ROOT was added at the request of one of my users -if [ ! -f $RPM_BUILD_ROOT/etc/mararc ] ; then - cp example_mararc $RPM_BUILD_ROOT/etc/mararc -else - echo /etc/mararc already there, not replacing -fi -if [ ! -d $RPM_BUILD_ROOT/etc/maradns ] ; then - mkdir $RPM_BUILD_ROOT/etc/maradns - chmod 755 $RPM_BUILD_ROOT/etc/maradns -fi -if [ ! -d $RPM_BUILD_ROOT/etc/maradns/logger ] ; then - # The duende tool *needs* an /etc/maradns/logger directory - # Note that duende uses an absolute path - mkdir $RPM_BUILD_ROOT/etc/maradns/logger -fi -if [ ! -f $RPM_BUILD_ROOT/etc/maradns/db.example.net ] ; then - cp example_csv2 $RPM_BUILD_ROOT/etc/maradns/db.example.net -fi - -# 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 - cp $BUILDDIR/zoneserver.startup \ - $RPM_BUILD_ROOT/etc/rc.d/init.d/maradns.zoneserver - fi - if cd $RPM_BUILD_ROOT/etc/rc.d/rc3.d/ ; then - echo Starting up MaraDNS at runlevel 3 - rm S60maradns 2> /dev/null - rm K60maradns.zoneserver 2> /dev/null - ln -s ../init.d/maradns S60maradns - ln -s ../init.d/maradns.zoneserver K60maradns.zoneserver - fi - if cd $RPM_BUILD_ROOT/etc/rc.d/rc5.d/ ; then - echo starting up MaraDNS at runlevel 5 - rm S60maradns 2> /dev/null - rm K60maradns.zoneserver 2> /dev/null - ln -s ../init.d/maradns S60maradns - ln -s ../init.d/maradns.zoneserver K60maradns.zoneserver - fi -fi -