diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/openntpd/README | 16 | ||||
-rw-r--r-- | network/openntpd/doinst.sh | 27 | ||||
-rw-r--r-- | network/openntpd/openntpd.SlackBuild | 122 | ||||
-rw-r--r-- | network/openntpd/openntpd.info | 10 | ||||
-rw-r--r-- | network/openntpd/rc.ntpd | 41 | ||||
-rw-r--r-- | network/openntpd/slack-desc | 19 |
6 files changed, 0 insertions, 235 deletions
diff --git a/network/openntpd/README b/network/openntpd/README deleted file mode 100644 index 22cecd1631..0000000000 --- a/network/openntpd/README +++ /dev/null @@ -1,16 +0,0 @@ -OpenNTPD is a FREE, easy to use implementation of the Network Time -Protocol. It provides the ability to sync the local clock to remote -NTP servers and can act as NTP server itself, redistributing the -local clock. OpenNTPD is primarily developed by Henning Brauer as -part of the OpenBSD Project. The portable version is made by Darren -Tucker. - -You will need to add the "_ntp" user and group to /etc/passwd and -/etc/group if it's not present on your system. Without these groups, -the package will not work. See http://slackbuilds.org/uid_gid.txt -for uid and gid recommendations. - -This package conflicts with the "ntp" package included with Slackware, -so only one of them should be installed at any given time. -The /etc/rc.d/rc.ntpd script in Slackware will not work with OpenNTPD; -be sure to move the /etc/rc.d/rc.ntpd.new over if you want it to work. diff --git a/network/openntpd/doinst.sh b/network/openntpd/doinst.sh deleted file mode 100644 index 27ac593f97..0000000000 --- a/network/openntpd/doinst.sh +++ /dev/null @@ -1,27 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname ${NEW})/$(basename ${NEW} .new)" - if [ -e ${OLD} ]; then - cp -a ${OLD} ${NEW}.incoming - cat ${NEW} > ${NEW}.incoming - mv ${NEW}.incoming ${NEW} - fi - config ${NEW} -} - -preserve_perms etc/rc.d/rc.ntpd.new -config etc/ntpd.conf.new - diff --git a/network/openntpd/openntpd.SlackBuild b/network/openntpd/openntpd.SlackBuild deleted file mode 100644 index 06cc475858..0000000000 --- a/network/openntpd/openntpd.SlackBuild +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/sh - -# Slackware build script for openntpd - -# Copyright 2006,2008,2009,2010 Robby Workman, Northport, Alabama, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PRGNAM=openntpd -VERSION=3.9p1 -BUILD=${BUILD:-2} -TAG=${TAG:-_SBo} - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -check_user() { - printf " You must have a _ntp user and group to use this package. - \t# groupadd -g 217 _ntp - \t# useradd -u 217 -d /var/empty -s /bin/false -g _ntp _ntp \n\n" - exit 1 -} - -if ! grep -q ^_ntp: /etc/passwd ; then - check_user -elif ! grep -q ^_ntp: /etc/group ; then - check_user -fi - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -chmod -R a-s,u+w,go+r-w . - -CFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - -find $PKG/usr/man -type f -exec gzip -9 {} \; - -# Don't clobber config file -mv $PKG/etc/ntpd.conf $PKG/etc/ntpd.conf.new - -# Add an init script that works with OpenNTPD (see the README) -mkdir -p $PKG/etc/rc.d -install -m 0755 $CWD/rc.ntpd $PKG/etc/rc.d/rc.ntpd.new - -# Make sure the chroot directory exists with correct ownership/mode -mkdir -p $PKG/var/empty -chown root:root $PKG/var/empty -chmod 0755 $PKG/var/empty - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CREDITS ChangeLog INSTALL LICENCE README \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/openntpd/openntpd.info b/network/openntpd/openntpd.info deleted file mode 100644 index fc597d4df1..0000000000 --- a/network/openntpd/openntpd.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="openntpd" -VERSION="3.9p1" -HOMEPAGE="http://www.openntpd.org" -DOWNLOAD="ftp://ftp.eu.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-3.9p1.tar.gz" -MD5SUM="afc34175f38d08867c1403d9008600b3" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -MAINTAINER="Robby Workman" -EMAIL="rw@rlworkman.net" -APPROVED="David Somero" diff --git a/network/openntpd/rc.ntpd b/network/openntpd/rc.ntpd deleted file mode 100644 index 5f53dc12ab..0000000000 --- a/network/openntpd/rc.ntpd +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -# Start/stop/restart the network time protocol daemon - -# Written for Slackware Linux by Robby Workman <http://rlworkman.net> -# ## (by modifying one of Pat's scripts) - -# Add -s to the command to set the time at startup - -ntpd_start() { - if [ -x /usr/sbin/ntpd ]; then - echo "Starting ntpd daemon: /usr/sbin/ntpd " - /usr/sbin/ntpd 2> /dev/null - sleep 1 - fi -} - -ntpd_stop() { - echo "Stopping ntpd daemon..." - killall ntpd 2> /dev/null -} - -ntpd_restart() { - ntpd_stop - sleep 1 - ntpd_start -} - -case "$1" in -'start') - ntpd_start - ;; -'stop') - ntpd_stop - ;; -'restart') - ntpd_restart - ;; -*) - echo "usage $0 start|stop|restart" -esac diff --git a/network/openntpd/slack-desc b/network/openntpd/slack-desc deleted file mode 100644 index 32d58bbba8..0000000000 --- a/network/openntpd/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -openntpd: OpenNTPD (Network Time Protocol client/server) -openntpd: -openntpd: OpenNTPD is a FREE, easy to use implementation of the Network Time -openntpd: Protocol. It provides the ability to sync the local clock to remote -openntpd: NTP servers and can act as NTP server itself, redistributing the -openntpd: local clock. OpenNTPD is primarily developed by Henning Brauer as -openntpd: part of the OpenBSD Project. The portable version is made by Darren -openntpd: Tucker. -openntpd: -openntpd: Homepage: http://www.openntpd.org -openntpd: |