From 6e782fc203ab33307e4a984b26e6aed8f632fff1 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 30 Jan 1999 19:39:53 +0000 Subject: [PATCH] Add Debian files to CVS. --- debian/changelog | 59 +++++++++++++++++++++++++++++++++++++++++ debian/conffiles | 3 +++ debian/control | 16 +++++++++++ debian/copyright | 31 ++++++++++++++++++++++ debian/initd | 24 +++++++++++++++++ debian/postinst | 4 +++ debian/postrm | 6 +++++ debian/prerm | 3 +++ debian/rules | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 215 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/conffiles create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/initd create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100644 debian/prerm create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7883d80 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,59 @@ +userv (0.59) unstable; urgency=low + + * New upstream version which fixes the problems fixed in NMUs. + * Debian and mainstream version integrated. + + -- Ian Jackson Sat, 30 Jan 1999 19:39:39 +0000 + +userv (0.58-1.2) unstable; urgency=low + + * Non maintainer upload. + Fix for this error on the Arm. + cc1: warnings being treated as errors + client.c: In function callvalueoption': + client.c:747: warning: suggest explicit braces to avoid ambiguous else' + Braces inserted, to join the if statements together + + -- Turbo Fredriksson Thu, 20 Aug 1998 06:17:43 -0400 + +userv (0.58-1.1) frozen unstable; urgency=low + + * Non maintainer upload + * Finally compiled against libc6 + * To Brian White: Please either confirm this upload to go into frozen or + remove userv from frozen. + * Added external declaration for strsignal() to overlord.c and client.c + + -- Martin Schulze Sat, 18 Jul 1998 10:48:11 +0200 + +userv (0.58-1) unstable; urgency=low + + * Upgraded to new upstream version; major security fix, error handling + fixes. + + -- Ian Jackson Thu, 29 Jan 1998 00:03:52 +0000 + +userv (0.57-1) unstable; urgency=high + + * Upgraded to new upstream version; fixed bug with root-provided + services. + * Uses new -daemon option in init.d script. + * Sets VEREXT during build to set version number. + + -- Ian Jackson Tue, 14 Oct 1997 02:22:22 +0100 + +userv (0.56-1) experimental; urgency=low + + * Upgraded to new upstream version. + + -- Ian Jackson Sat, 11 Oct 1997 14:13:22 +0100 + +userv (0.55.1-1) experimental; urgency=low + + * Initial Debian release. + + -- Ian Jackson Mon, 22 Sep 1997 01:08:23 +0100 + +# Local variables: +# mode: debian-changelog +# End: diff --git a/debian/conffiles b/debian/conffiles new file mode 100644 index 0000000..2463c0f --- /dev/null +++ b/debian/conffiles @@ -0,0 +1,3 @@ +/etc/init.d/userv +/etc/userv/system.default +/etc/userv/system.override diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1f183f2 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: userv +Section: admin +Priority: experimental +Maintainer: Ian Jackson +Standards-Version: 2.1.1.0 + +Package: userv +Architecture: any +Depends: ${shlibs:Depends} +Description: `user services' - program call across trust boundaries + userv allows one program to invoke another when only limited trust + exists between them. It is a tool which can be used to avoid having + to give other system services root privilege, and which allows users + to more securely have programs provide services to others. + . + There are not many userv-using services yet. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fbbf975 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +This is Debian/GNU Linux's prepackaged version of Ian Jackson's +`userv' system utility. + +This package was put together from the upstream sources by the +upstream author. Please contact Ian Jackson at + for matters relating to the Debian +package in particular or for +general enquiries about userv. + +The changes were to add support for the Debian package maintenance +scheme, by adding various debian/* files and arranging for the uservd +daemon to be started automatically. + + +userv is Copyright (C)1996-7 Ian Jackson . + +userv is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2 of the License, or (at your +option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License with +your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with the +Debian GNU/Linux userv source package as the file COPYING; if not, +email me at one of the addresses above or write to the Free Software +Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. diff --git a/debian/initd b/debian/initd new file mode 100644 index 0000000..c3a7ca1 --- /dev/null +++ b/debian/initd @@ -0,0 +1,24 @@ +#!/bin/sh + +test -f /usr/sbin/uservd || exit 0 + +case "$1" in +start) + echo "Starting user services daemon uservd" + start-stop-daemon --start --quiet --exec /usr/sbin/uservd -- -daemon + ;; +stop) + echo "Stopping user services daemon uservd" + start-stop-daemon --stop --quiet --user root --exec /usr/sbin/uservd + ;; +reload) + start-stop-daemon --stop --quiet --user root --exec /usr/sbin/uservd + sleep 1 + start-stop-daemon --start --quiet --exec /usr/sbin/uservd -- -daemon + ;; +*) + echo "Usage: /etc/init.d/userv {start|stop|reload}" + exit 1 +esac + +exit 0 diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..ef30f6e --- /dev/null +++ b/debian/postinst @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +update-rc.d userv defaults 19 50 +/etc/init.d/userv start >/dev/null diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..caab552 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +if test "$1" = purge +then + update-rc.d userv remove +fi diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..bab5707 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +/etc/init.d/userv stop >/dev/null diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..225bcfc --- /dev/null +++ b/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +package=userv +revision=$(shell dpkg-parsechangelog | sed -n 's/^Version:.*-//p') +verext=-$(revision)deb + +build: + $(checkdir) + ./configure --prefix=/usr + $(MAKE) VEREXT=$(verext) + $(MAKE) spec.html VEREXT=$(verext) + touch build + +clean: + $(checkdir) + -rm -f build + -$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean + -rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars* + +binary-indep: checkroot build + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build + $(checkdir) + -rm -rf debian/tmp + install -d debian/tmp/{DEBIAN,etc/init.d} debian/tmp/usr/{sbin,bin} + install -d debian/tmp/etc/userv/{override,default}.d + install -d debian/tmp/usr/doc/$(package)/examples/ + install -d debian/tmp/var/run/$(package)/ + cp debian/{postinst,prerm,postrm,conffiles} debian/tmp/DEBIAN/. + cp debian/initd debian/tmp/etc/init.d/userv + chmod +x debian/tmp/DEBIAN/{postinst,prerm,postrm} + chmod +x debian/tmp/etc/init.d/userv + $(MAKE) LDFLAGS=-s INSTALL_PROGRAM='install -c -s' \ + VEREXT=$(verext) \ + prefix=debian/tmp/usr etcdir=debian/tmp/etc install + cp debian/copyright debian/tmp/usr/doc/$(package)/. + cp debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian + cp README debian/tmp/usr/doc/$(package)/README.upstream + cp Changelog debian/tmp/usr/doc/$(package)/changelog + cp system.default system.override debian/tmp/usr/doc/$(package)/examples + gzip -9v debian/tmp/usr/doc/$(package)/changelog{,.Debian} + cp -a spec.html debian/tmp/usr/doc/$(package)/ + dpkg-shlibdeps daemon client + dpkg-gencontrol + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + chmod 700 debian/tmp/var/run/userv + dpkg --build debian/tmp .. + +define checkdir + test -f overlord.c -a -f lexer.l.m4 -a -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot -- 2.30.2