File: rules

package info (click to toggle)
apt-mirror2 14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,372 kB
  • sloc: python: 4,924; sh: 23; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

DIST ?= $(shell lsb_release -si | tr '[:upper:]' '[:lower:]')
CODENAME ?= $(shell lsb_release -sc)

%:
	dh $@ --with python3 --buildsystem=pybuild

execute_after_dh_install:
	sed -i -E \
		-e \
		"s#/var/spool/apt-mirror#/var/spool/apt-mirror2#g" \
		debian/apt-mirror2/etc/apt/mirror2.list

	if test -f debian/$(DIST)-mirror.list; then \
		sed "s#@CODENAME@#$(CODENAME)#g" debian/$(DIST)-mirror.list >> debian/apt-mirror2/etc/apt/mirror2.list ;\
	fi

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start