1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wformat=2 -Wunused -Wundef -Wextra -Wswitch-enum -Wpointer-arith -Wnested-externs -Wbad-function-cast -Wcast-qual -Wcast-align -Wshadow
%:
dh $@
override_dh_auto_build:
./configure \
--with-slrnpull=/var/spool/slrnpull \
--with-gnutls=/usr/lib/$(DEB_HOST_MULTIARCH) \
--enable-inews --enable-spool \
--enable-setgid-code \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc/news \
--with-server-file=/etc/news/server \
--with-canlock \
--without-x \
--with-uu \
--with-slanglib=/usr/lib/$(DEB_HOST_MULTIARCH) \
--with-slanginc=/usr/include
$(MAKE) -C src CONFDIR=/etc/news slrn
$(MAKE) CANLOCK_LIB= UUDEVIEW_LIB= CONFDIR=/etc/news slrnpull
override_dh_install-arch:
$(MAKE) install DESTDIR=debian/tmp
chrpath --delete debian/tmp/usr/bin/slrn
dh_install
cp debian/tmp/usr/share/doc/slrn/help.txt \
debian/slrn/etc/news/slrn-help.txt
chown news.news debian/slrn/etc/news debian/slrn//var/lib/slrn
chown -R news.news debian/slrnpull/var/spool/slrnpull
chmod g+ws,+t debian/slrnpull/var/spool/slrnpull/out.going \
debian/slrnpull/var/spool/slrnpull/out.going/rejects
chmod g+ws,o+w,+t debian/slrnpull/var/spool/slrnpull/requests
|