diff options
author | Eric Hameleers <alien@slackware.com> | 2007-07-25 19:14:10 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-07-25 19:14:10 +0000 |
commit | d3718caef220e72cd6285394c0c6c8ff3e323b4c (patch) | |
tree | c8b32ec9b8fb4c375940bb4226f1e38a86204e41 /ifplugd | |
parent | c7625c6c44c3594c486f8384ce279d8508779716 (diff) | |
download | asb-d3718caef220e72cd6285394c0c6c8ff3e323b4c.tar.gz asb-d3718caef220e72cd6285394c0c6c8ff3e323b4c.tar.xz |
Initial revision
Diffstat (limited to 'ifplugd')
-rwxr-xr-x | ifplugd/build/libdaemon.SlackBuild | 116 | ||||
-rw-r--r-- | ifplugd/build/libdaemon.slack-desc | 19 |
2 files changed, 135 insertions, 0 deletions
diff --git a/ifplugd/build/libdaemon.SlackBuild b/ifplugd/build/libdaemon.SlackBuild new file mode 100755 index 00000000..614ca58e --- /dev/null +++ b/ifplugd/build/libdaemon.SlackBuild @@ -0,0 +1,116 @@ +#!/bin/sh +# Copyright (c) 2006 Eric Hameleers <alien@sox.homeip.net> +# Distributed under the terms of the GNU General Public License, Version 2 +# ------------------------------------------------------------------------------ +# +# Slackware SlackBuild script +# =========================== +# By: Eric Hameleers <alien@slackware.com> +# For: libdaemon +# URL: http://0pointer.de/lennart/projects/libdaemon/ +# Needs: n/a +# Changelog: +# 0.6-1: 13/apr/2004 by Eric Hameleers +# * Initial build +# 0.8-1: 07/oct/2005 by Eric Hameleers +# * Initial build +# +# ------------------------------------------------------------------------------ +# +# Issue 'sh SlackBuild --cleanup' to build a Slackware 8.1 package. +# The package (.tgz) plus descriptive .txt file are created in /tmp . +# Install using 'installpkg'. +# +# ------------------------------------------------------------------------------ + + +# --- INIT --- + +# Set initial variables: +CWD=`pwd` +if [ "$TMP" = "" ]; then + TMP=/tmp +fi + +PRGNAM=libdaemon +VERSION=0.8 +ARCH=i486 +BUILD=1 + +PKG=$TMP/package-$PRGNAM + +if [ ! -d $TMP/tmp-$PRGNAM ]; then + mkdir -p $TMP/tmp-$PRGNAM # location to build the source +fi +if [ ! -d $PKG ]; then + mkdir -p $PKG # place for the package to be built +fi + +# Clean up left-overs +rm -r $PKG/* + +# --- PACKAGE BUILDING --- + +# Explode the package framework: +cd $PKG +explodepkg $CWD/_$PRGNAM.tar.gz + +echo "+=================+" +echo "| $PRGNAM-$VERSION |" +echo "+=================+" + +cd $TMP/tmp-$PRGNAM + +echo "Extracting the source tarball..." +tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz + +cd $PRGNAM-$VERSION +chown -R root.root . + +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + | tee $CWD/config.log +make 2>&1 | tee $CWD/make.log +installwatch -o $CWD/install.log make DESTDIR=$PKG install + + +# --- DOCUMENTATION --- + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples +cp -a LICENSE doc/README doc/README.html doc/reference \ + $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/doc/$PRGNAM-$VERSION/reference/man $PKG/usr/ +cp -a examples/{Makefile,testd.c} $PKG/usr/doc/$PRGNAM-$VERSION/examples +chown root.root $PKG/usr/doc/$PRGNAM-$VERSION/* +chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/* + +gzip -9f $PKG/usr/man/*/* + + +# --- OWNERSHIP, RIGHTS --- + +chown -R root.root $PKG +chown root.bin $PKG/usr/{bin,sbin}/* +chmod -R o-w $PKG + + +# --- PACKAGE DESCRIPTION --- + +mkdir -p $PKG/install 2>/dev/null +cat $CWD/${PRGNAM}.slack-desc > $PKG/install/slack-desc + + +# --- BUILDING --- + +# Build the package: +cd $PKG +makepkg --linkadd y --chown n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz +(cd $TMP && md5sum $PRGNAM-$VERSION-$ARCH-$BUILD.tgz > $PRGNAM-$VERSION-$ARCH-$BUILD.tgz.md5) +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txt + +cd $CWD + +# Clean up the extra stuff: +if [ "$1" = "--cleanup" ]; then + rm -rf $TMP/tmp-$PRGNAM + rm -rf $PKG +fi diff --git a/ifplugd/build/libdaemon.slack-desc b/ifplugd/build/libdaemon.slack-desc new file mode 100644 index 00000000..337fe2a7 --- /dev/null +++ b/ifplugd/build/libdaemon.slack-desc @@ -0,0 +1,19 @@ +# 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------------------------------------------------------| +libdaemon: libdaemon (daemonising routines) +libdaemon: +libdaemon: libdaemon is a lightweight C library that eases the writing +libdaemon: of UNIX daemons. +libdaemon: libdaemon is currently used by: +libdaemon: ifplugd, waproamd, ivam2 and aeswepd. +libdaemon: +libdaemon: Author: +libdaemon: Lennart Poettering <mzqnrzba@0pointer.de> +libdaemon: +libdaemon: + |