Debianization.
authormdw <mdw>
Sat, 29 Nov 2003 23:47:33 +0000 (23:47 +0000)
committermdw <mdw>
Sat, 29 Nov 2003 23:47:33 +0000 (23:47 +0000)
configure.in
debian/.cvsignore
debian/control
debian/rules

index ad741fc..0cdfb67 100644 (file)
@@ -1,6 +1,6 @@
-dnl -*-fundamental-*-
+dnl -*-m4-*-
 dnl
-dnl $Id: configure.in,v 1.3 2003/01/25 23:58:44 mdw Exp $
+dnl $Id: configure.in,v 1.4 2003/11/29 23:39:59 mdw Exp $
 dnl
 dnl Configurator for chkpath
 dnl
@@ -28,6 +28,9 @@ dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 dnl ----- Revision history --------------------------------------------------
 dnl
 dnl $Log: configure.in,v $
+dnl Revision 1.4  2003/11/29 23:39:59  mdw
+dnl Debianization.
+dnl
 dnl Revision 1.3  2003/01/25 23:58:44  mdw
 dnl Make guts into official library.
 dnl
index 09b3736..afc978e 100644 (file)
@@ -1,2 +1,4 @@
 files tmp substvars *.substvars *.debhelper
 libcheckpath libcheckpath-dev
+checkpath
+checkpath1 libcheckpath1
index 7ae87c0..b47da1c 100644 (file)
@@ -1,12 +1,13 @@
 Source: checkpath
 Section: admin
 Priority: extra
+Build-Depends: mlib-dev, debhelper (>= 4.0.2)
 Maintainer: Mark Wooding <mdw@nsict.org>
 Standards-Version: 3.1.1
 
 Package: checkpath
 Architecture: any
-Depends: ${shlibs:Depends}, libcheckpath (= ${Source-Version})
+Depends: ${shlibs:Depends}, libcheckpath1 (= ${Source-Version})
 Description: Checks PATH variable for security
  Contains two handy programs.
  chkpath -- Warns about other users who can write to directories on
@@ -19,7 +20,7 @@ Description: Checks PATH variable for security
    write to your temporary directory, or make you refer to files
    outside of it by messing with parent directories.
 
-Package: libcheckpath
+Package: libcheckpath1
 Architecture: any
 Depends: ${shlibs:Depends}
 Description: Checks paths for security
@@ -31,7 +32,7 @@ Description: Checks paths for security
 
 Package: libcheckpath-dev
 Architecture: any
-Depends: libcheckpath (= ${Source-Version}), mlib-dev (>= 2.0.0), libc6-dev
+Depends: libcheckpath1 (= ${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
index 1e1d915..f9674e8 100755 (executable)
@@ -1,5 +1,7 @@
 #! /usr/bin/make -f
 
+export DH_COMPAT = 4
+
 build:
        rm -rf build deb-build
        mkdir deb-build
@@ -13,18 +15,18 @@ clean:
 
 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
+       make -C deb-build install DESTDIR=`pwd`/debian/checkpath
+       mkdir -p debian/libcheckpath1/usr debian/libcheckpath-dev/usr
+       mv debian/checkpath/usr/lib debian/libcheckpath1/usr/lib
        mkdir -p debian/libcheckpath-dev/usr/lib
-       mv debian/libcheckpath/usr/lib/*.a debian/libcheckpath/usr/lib/*.so \
-               debian/libcheckpath-dev/usr/lib
+       mv debian/libcheckpath1/usr/lib/*.a debian/libcheckpath-dev/usr/lib
+       mv debian/libcheckpath1/usr/lib/*.so debian/libcheckpath-dev/usr/lib
+       mv debian/libcheckpath1/usr/lib/*.la debian/libcheckpath-dev/usr/lib
        mkdir -p debian/libcheckpath-dev/usr/share/man
-       mv debian/tmp/usr/share/man/man3 \
+       mv debian/checkpath/usr/share/man/man3 \
                debian/libcheckpath-dev/usr/share/man
        mkdir -p debian/libcheckpath-dev/usr/bin
-       mv debian/tmp/usr/bin/checkpath-config \
+       mv debian/checkpath/usr/bin/checkpath-config \
                debian/libcheckpath-dev/usr/bin
 
 binary-indep:
@@ -34,6 +36,8 @@ binary-arch: install
        dh_testroot -a
        dh_compress -a
        dh_installdocs -a
+       dh_strip -a
+       dh_makeshlibs -a -V
        dh_shlibdeps -a
        dh_gencontrol -a
        dh_fixperms -a