Changeset 209 for trunk/rules.deb.in


Ignore:
Timestamp:
Jan 26, 2009, 10:09:45 PM (16 years ago)
Author:
katerina
Message:

Fix problem building deb package (ticket #135).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.deb.in

    r79 r209  
    1212
    1313# This is the debhelper compatability version to use.
    14 export DH_COMPAT=1
     14export DH_COMPAT=4
    1515
    1616package=@install_name@
     
    4848        #       `pwd`/debian/tmp/etc/samhain
    4949
    50         $(MAKE) install install-boot DESTDIR=`pwd`/debian/tmp
     50        # $(MAKE) install install-boot DESTDIR=`pwd`/debian/tmp
     51        $(MAKE) install install-boot DESTDIR=`pwd`/debian/@install_name@
    5152
    5253        # However, remove the rc.d links
     
    7071        dh_installdebconf       
    7172        dh_installdocs
    72         [ -f debian/tmp/usr/share/doc/@install_name@/MANUAL-2_3.html.tar ] && \
    73                 cd debian/tmp/usr/share/doc/@install_name@ && \
     73        [ -f debian/@install_name@/usr/share/doc/@install_name@/MANUAL-2_3.html.tar ] && \
     74                cd debian/@install_name@/usr/share/doc/@install_name@ && \
    7475                tar xf MANUAL-2_3.html.tar && mv MANUAL-2_3 manual.html && \
    75                 rm -f MANUAL-2_3.html.tar
     76                rm -f MANUAL-2_3.html.tar && \
     77                mv MANUAL-2_3.pdf manual.pdf
    7678        dh_installexamples @top_srcdir@/scripts/example_pager.pl \
    7779                @top_srcdir@/scripts/example_sms.pl \
     
    8486        dh_installmenu
    8587        dh_installinit -- defaults 19
    86         [ -f debian/postinst.debhelper ] && \
     88        [ -f debian/@install_name@.postinst.debhelper ] && \
    8789                cd debian && \
    88                 cat postinst.debhelper | \
     90                cat @install_name@.postinst.debhelper | \
    8991                    sed 's%/etc/init.d/@install_name@ start%:%' > postinst.tmp && \
    90                     mv postinst.tmp postinst.debhelper
    91         [ -f debian/postinst.debhelper ] && \
     92                    mv postinst.tmp @install_name@.postinst.debhelper
     93        [ -f debian/@install_name@.postinst.debhelper ] && \
    9294                cd debian && \
    93                 cat postinst.debhelper | \
     95                cat @install_name@.postinst.debhelper | \
    9496                    sed 's%invoke-rc.d @install_name@ start%:%' > postinst.tmp && \
    95                     mv postinst.tmp postinst.debhelper
    96         [ -f debian/prerm.debhelper ] && \
     97                    mv postinst.tmp @install_name@.postinst.debhelper
     98        [ -f debian/@install_name@.prerm.debhelper ] && \
    9799                cd debian && \
    98                 cat prerm.debhelper | \
     100                cat @install_name@.prerm.debhelper | \
    99101                    sed 's%/etc/init.d/@install_name@ stop%/etc/init.d/@install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
    100                     mv prerm.tmp prerm.debhelper
    101         [ -f debian/prerm.debhelper ] && \
     102                    mv prerm.tmp @install_name@.prerm.debhelper
     103        [ -f debian/@install_name@.prerm.debhelper ] && \
    102104                cd debian && \
    103                 cat prerm.debhelper | \
     105                cat @install_name@.prerm.debhelper | \
    104106                    sed 's%invoke-rc.d @install_name@ stop%invoke-rc.d @install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
    105                     mv prerm.tmp prerm.debhelper
     107                    mv prerm.tmp @install_name@.prerm.debhelper
    106108        # dh_installmanpages
    107109        dh_installchangelogs @top_srcdir@/docs/Changelog
Note: See TracChangeset for help on using the changeset viewer.