]> git.saurik.com Git - apt.git/blobdiff - debian/rules
Added Depends: libapt-pkg2.2 to the libapt-pkg-dev
[apt.git] / debian / rules
index 0ee846a533917b88375f4a12a95e2f4c115521e6..3de998888421b489e5ffac55b88405ee106907e9 100755 (executable)
@@ -2,16 +2,20 @@
 # Made with the aid of dh_make, by Craig Small
 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
 # Some lines taken from debmake, by Christoph Lameter.
-# $Id: rules,v 1.3 1999/01/28 06:42:27 jgg Exp $
+# $Id: rules,v 1.8 1999/03/16 09:43:41 mblevin Exp $
 
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# Find the libapt-pkg major version for use in other control files
+export LIBAPT_MAJOR=`egrep '^MAJOR=' apt-pkg/makefile |cut -d '=' -f 2`
+
 build: build-stamp
 build-stamp: configure
        dh_testdir
        mkdir build
+       make startup
        cd build; ../configure
        cd ..
 #      cd build && CXXFLAGS="-g -Wall -D_POSIX_C_SOURCE=199309" ../configure --disable-nls --disable-static --prefix=/usr
@@ -58,10 +62,18 @@ apt: build
        cp build/scripts/dselect/* debian/tmp/usr/lib/dpkg/methods/apt/
 #      cp debian/sources.list debian/tmp/etc/apt/
 
+       # Copy the users guide  
        cp build/docs/guide.text debian/tmp/usr/doc/apt/users-guide.txt
        mkdir debian/tmp/usr/doc/apt/users-guide.html/
        cp -a build/docs/guide.html/* debian/tmp/usr/doc/apt/users-guide.html/
-
+       
+       # Copy the offline guide        
+       cp build/docs/offline.text debian/tmp/usr/doc/apt/offline.txt
+       mkdir debian/tmp/usr/doc/apt/offline.html/
+       cp -a build/docs/offline.html/* debian/tmp/usr/doc/apt/offline.html/
+       
+       cp -a debian/dhelp debian/tmp/usr/doc/apt/.dhelp
+       
 #      head -n 500 ChangeLog > debian/ChangeLog
 
        dh_installdocs -papt 
@@ -79,8 +91,9 @@ apt: build
        dh_suidregister -papt
        dh_installdeb -papt
        LD_LIBRARY_PATH=debian/tmp/usr/lib dh_shlibdeps -papt
+       echo libapt-pkg:major=${LIBAPT_MAJOR} >> debian/substvars
        dh_gencontrol -papt
-       dh_makeshlibs -papt
+       dh_makeshlibs -m${LIBAPT_MAJOR} -Vlibapt-pkg${LIBAPT_MAJOR} -papt
        dh_md5sums -papt
        dh_builddeb -papt
 
@@ -90,7 +103,7 @@ libapt-pkg-dev: build
        dh_clean -plibapt-pkg-dev -k
        dh_installdirs -plibapt-pkg-dev usr/lib usr/include/apt-pkg
        
-       ln -s libapt-pkg.so.2.0 debian/libapt-pkg-dev/usr/lib/libapt-pkg.so
+       ln -s libapt-pkg.so.${LIBAPT_MAJOR} debian/libapt-pkg-dev/usr/lib/libapt-pkg.so
 
        cp build/include/apt-pkg/*.h debian/libapt-pkg-dev/usr/include/apt-pkg/
 
@@ -101,6 +114,7 @@ libapt-pkg-dev: build
        dh_fixperms -plibapt-pkg-dev
        dh_installdeb -plibapt-pkg-dev
        dh_shlibdeps -plibapt-pkg-dev
+       echo libapt-pkg:major=${LIBAPT_MAJOR} >> debian/libapt-pkg-dev.substvars
        dh_gencontrol -plibapt-pkg-dev
        dh_md5sums -plibapt-pkg-dev
        dh_builddeb -plibapt-pkg-dev
@@ -109,10 +123,11 @@ libapt-pkg-doc: build
        dh_testdir -plibapt-pkg-doc
        dh_testroot -plibapt-pkg-doc
        dh_clean -plibapt-pkg-doc -k
-       dh_installdirs -plibapt-pkg-doc usr/doc/apt
+       dh_installdirs -plibapt-pkg-doc usr/doc/apt usr/doc/libapt-pkg-doc
 
        cp -a build/docs/cache* build/docs/design* build/docs/dpkg-tech* \
          build/docs/files* build/docs/method* debian/libapt-pkg-doc/usr/doc/apt/
+       cp -a debian/libapt-pkg-doc.dhelp debian/libapt-pkg-doc/usr/doc/libapt-pkg-doc/.dhelp
 
        dh_installdocs -plibapt-pkg-doc
        dh_installchangelogs -plibapt-pkg-doc