File: rules

package info (click to toggle)
opensysusers 0.7.3-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: xml: 578; sh: 239; makefile: 194
file content (31 lines) | stat: -rwxr-xr-x 1,236 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_clean:

override_dh_auto_build:
	MANDIR=/usr/share/man DOCDIR=/usr/share/doc/opensysusers $(MAKE)

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/opensysusers/usr/share/man/man8
	PREFIX=/usr MANDIR=/usr/share/man DOCDIR=/usr/share/doc/opensysusers DESTDIR=$(CURDIR)/debian/opensysusers $(MAKE) install

	# These are too specific to artix-linux, and conflicting with
	# stuff from systemd, so let's remove them
	$(RM) $(CURDIR)/debian/opensysusers/usr/lib/sysusers.d/basic.conf

	# Rename the manpages to avoid a conflict with systemd
	mv $(CURDIR)/debian/opensysusers/usr/share/man/man5/sysusers.d.5 \
	  $(CURDIR)/debian/opensysusers/usr/share/man/man5/opensysusers.d.5
	mv $(CURDIR)/debian/opensysusers/usr/share/man/man8/systemd-sysusers.8 \
	  $(CURDIR)/debian/opensysusers/usr/share/man/man8/opensysusers-sysusers.8
	# no service file in opensysuser, so removing the link
	$(RM) $(CURDIR)/debian/opensysusers/usr/share/man/man8/systemd-sysusers.service.8

	# We move this away, so we can install the alternatives
	mv $(CURDIR)/debian/opensysusers/usr/bin/sysusers $(CURDIR)/debian/opensysusers/usr/bin/opensysusers-sysusers

override_dh_installinit:
	dh_installinit --no-start