From 8b5dfb5e49592abe7e426d0dd06818a0175a9ee3 Mon Sep 17 00:00:00 2001 From: mdw Date: Mon, 10 Nov 2003 10:02:02 +0000 Subject: [PATCH] Debianization\! --- .cvsignore | 1 + Makefile.am | 9 +++++++-- debian/changelog | 5 +++++ debian/control | 40 ++++++++++++++++++++++++++++++++++++++++ debian/copyright | 16 ++++++++++++++++ debian/rules | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/.cvsignore b/.cvsignore index da4f443..b47873e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -3,3 +3,4 @@ build Makefile.in configure aclocal.m4 +deb-build diff --git a/Makefile.am b/Makefile.am index b08ae56..166e2c6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## -*-makefile-*- ## -## $Id: Makefile.am,v 1.4 2003/01/25 23:58:44 mdw Exp $ +## $Id: Makefile.am,v 1.5 2003/11/10 10:02:02 mdw Exp $ ## ## Makefile for chkpath ## @@ -28,6 +28,9 @@ ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.am,v $ +## Revision 1.5 2003/11/10 10:02:02 mdw +## Debianization\! +## ## Revision 1.4 2003/01/25 23:58:44 mdw ## Make guts into official library. ## @@ -54,7 +57,9 @@ bin_SCRIPTS = checkpath-config bin_PROGRAMS = chkpath tmpdir man_MANS = chkpath.1 tmpdir.1 checkpath.3 -EXTRA_DIST = $(man_MANS) +EXTRA_DIST = \ + $(man_MANS) \ + debian/control debian/copyright debian/changelog debian/rules chkpath_SOURCES = chkpath.c tmpdir_SOURCES = tmpdir.c diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..cc0048b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +checkpath (1.1.0) experimental; urgency=low + + * Debianization! + + -- Mark Wooding Sun, 9 Nov 2003 17:21:10 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7ae87c0 --- /dev/null +++ b/debian/control @@ -0,0 +1,40 @@ +Source: checkpath +Section: admin +Priority: extra +Maintainer: Mark Wooding +Standards-Version: 3.1.1 + +Package: checkpath +Architecture: any +Depends: ${shlibs:Depends}, libcheckpath (= ${Source-Version}) +Description: Checks PATH variable for security + Contains two handy programs. + chkpath -- Warns about other users who can write to directories on + your PATH, or rename them, or whatever. If checkpath gives you a + clean bill of health then nobody but you and root can make command + names mean different things without direct write access to the + program files. + tmpdir -- Creates a temporary directory which can't be subverted by + other users. Nobody except you and root will be able to read or + write to your temporary directory, or make you refer to files + outside of it by messing with parent directories. + +Package: libcheckpath +Architecture: any +Depends: ${shlibs:Depends} +Description: Checks paths for security + Walks a pathname, checking every symlink and directory on the way, + and issuing alerts if any element is writable by someone other than + the calling uid or root. Useful if you're paranoid. This package + just contains the shared library. If you want to write programs which + use this library, you need libcheckpath-dev. + +Package: libcheckpath-dev +Architecture: any +Depends: libcheckpath (= ${Source-Version}), mlib-dev (>= 2.0.0), libc6-dev +Description: Checks paths for security + Walks a pathname, checking every symlink and directory on the way, + and issuing alerts if any element is writable by someone other than + the calling uid or root. Useful if you're paranoid. This package + contains the header files and static libraries you need to compile + programs which use the library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ab4efee --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +checkpath is copyright (c) 2003 Straylight/Edgeware. + +checkpath 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. + +checkpath 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 a copy of the GNU General Public License in +/usr/share/common-licenses/GPL; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +USA. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6fdd631 --- /dev/null +++ b/debian/rules @@ -0,0 +1,54 @@ +#! /usr/bin/make -f + +build: + rm -rf build deb-build + mkdir deb-build + cd deb-build; ../configure --prefix=/usr --mandir=/usr/share/man + make -C deb-build + touch build + +clean: + dh_clean + rm -rf deb-build build + +install: build + dh_clean + make -C deb-build install DESTDIR=/home/mdw/src/chkpath/debian/tmp + mkdir -p debian/libcheckpath/usr debian/libcheckpath-dev/usr + mv debian/tmp/usr/lib debian/libcheckpath/usr/lib + rm -f debian/libcheckpath/usr/lib/*.la + mkdir -p debian/libcheckpath-dev/usr/lib + mv debian/libcheckpath/usr/lib/*.a debian/libcheckpath/usr/lib/*.so \ + debian/libcheckpath-dev/usr/lib + mkdir -p debian/libcheckpath-dev/usr/share/man + mv debian/tmp/usr/share/man/man3 \ + debian/libcheckpath-dev/usr/share/man + mkdir -p debian/libcheckpath-dev/usr/bin + mv debian/tmp/usr/bin/checkpath-config \ + debian/libcheckpath-dev/usr/bin + +binary-indep: + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_compress -a + dh_installdocs -a + dh_shlibdeps -a + dh_gencontrol -a + dh_fixperms -a + dh_installdeb -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +source: + rm -rf deb-build/*.tar.gz deb-build/=deb= + make -C deb-build dist PACKAGE=checkpath + mkdir deb-build/=deb= + cd deb-build/=deb=; tar xvfz ../*.tar.gz + d=/home/mdw/src/chkpath; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/* + rm -rf deb-build/=deb= + +.PHONY: binary binary-arch binary-indep clean install source -- 2.11.0