Makefile.in
configure
aclocal.m4
+deb-build
## -*-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
##
##----- 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.
##
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
--- /dev/null
+checkpath (1.1.0) experimental; urgency=low
+
+ * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org> Sun, 9 Nov 2003 17:21:10 +0000
--- /dev/null
+Source: checkpath
+Section: admin
+Priority: extra
+Maintainer: Mark Wooding <mdw@nsict.org>
+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.
--- /dev/null
+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.
--- /dev/null
+#! /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