File: rules

package info (click to toggle)
slrn 1.0.3%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,868 kB
  • sloc: ansic: 39,852; sh: 3,770; perl: 467; makefile: 232; sed: 16
file content (47 lines) | stat: -rwxr-xr-x 1,598 bytes parent folder | download
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
#!/usr/bin/make -f

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 -std=gnu17

configure_flags = \
	--with-slrnpull=/var/spool/slrnpull \
	--with-ssl=/usr/lib/$(DEB_HOST_MULTIARCH) \
	--enable-inews --enable-spool \
	--enable-setgid-code \
	--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

%:
	dh $@

override_dh_autoreconf:
	ln -s ../src autoconf
	AUTOHEADER=true dh_autoreconf autoreconf -- -f -i -Wno-obsolete autoconf
	cp autoconf/configure .

override_dh_auto_configure:
	dh_auto_configure -- $(configure_flags)

override_dh_auto_build:
	$(MAKE) -C src CONFDIR=/etc/news slrn
	$(MAKE) CANLOCK_LIB= UUDEVIEW_LIB= CONFDIR=/etc/news slrnpull

override_dh_install-arch:
	dh_install
	mv debian/slrn/etc/news/help.txt debian/slrn/etc/news/slrn-help.txt

override_dh_fixperms:
	dh_fixperms
	chown news.news debian/slrn/etc/news debian/slrn/var/lib/slrn
	# The perms on these directories are set so that files in them
	# are owned by group news, but the directories are only writable
	# by user news. out.going is g+w,+t since users write there.
	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