chiark / gitweb /
@@ -9,6 +9,7 @@
[userv.git] / debian / rules
index f58644d..66c9299 100755 (executable)
@@ -5,8 +5,7 @@ package=userv
 build:
        $(checkdir)
        ./configure --prefix=/usr
-       $(MAKE)
-       $(MAKE) spec.html
+       $(MAKE) all docs
        touch build
 
 clean:
@@ -30,21 +29,27 @@ binary-arch:        checkroot build
        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
+       chmod 755 debian/tmp/DEBIAN/{postinst,prerm,postrm}
+       chmod 755 debian/tmp/etc/init.d/userv
        $(MAKE) LDFLAGS=-s INSTALL_PROGRAM='install -c -s' \
-               prefix=debian/tmp/usr etcdir=debian/tmp/etc install
+               prefix=debian/tmp/usr etcdir=debian/tmp/etc \
+               docdir=debian/tmp/usr/doc/userv \
+               install install-doc
        cp debian/copyright debian/tmp/usr/doc/$(package)/.
        cp debian/changelog debian/tmp/usr/doc/$(package)/changelog
        cp README debian/tmp/usr/doc/$(package)/README.upstream
        cp system.default system.override debian/tmp/usr/doc/$(package)/examples
-       gzip -9v debian/tmp/usr/doc/$(package)/changelog
        ln -s changelog.gz debian/tmp/usr/doc/$(package)/changelog.Debian.gz
-       cp -a spec.html debian/tmp/usr/doc/$(package)/
+       gzip -9v debian/tmp/usr/doc/$(package)/changelog debian/tmp/usr/man/man1/*.1
+       rm debian/tmp/usr/doc/userv/*.ps
+       -mkdir -p -m 0755 debian/tmp/usr/share/doc
+       mv debian/tmp/usr/doc/* debian/tmp/usr/share/doc/
+       mv debian/tmp/usr/man debian/tmp/usr/share/man
+       rm -rf debian/tmp/usr/doc
        dpkg-shlibdeps daemon client
-       dpkg-gencontrol
+       dpkg-gencontrol -isp
        chown -R root.root debian/tmp
-       chmod -R g-ws debian/tmp
+       chmod -R og=rX debian/tmp
        chmod 700 debian/tmp/var/run/userv
        dpkg --build debian/tmp ..