commit | author | age
|
11f0bf
|
1 |
#!/usr/bin/make -f |
JK |
2 |
|
|
3 |
NAME = ComarchCryptoProvider |
|
4 |
VERSION = 1.0 |
|
5 |
PACKAGENAME = comarchcryptoprovider |
|
6 |
PACKAGEVERSION = $(VERSION)-0 |
|
7 |
URL = https://epuap.gov.pl/signing/plugin/linux |
|
8 |
BASENAME = ComarchCryptoProvider-installer.sh |
|
9 |
TARBALL = ComarchCryptoProvider-installer |
|
10 |
|
|
11 |
%: |
|
12 |
dh $@ --with systemd |
|
13 |
|
|
14 |
override_dh_usrlocal: |
|
15 |
override_dh_shlibdeps: |
|
16 |
dh_shlibdeps -- -l"debian/$(PACKAGENAME)/usr/local/$(NAME)" |
|
17 |
|
|
18 |
override_dh_auto_clean: |
|
19 |
rm -f "$(BASENAME)" "$(TARBALL)" |
|
20 |
rm -f ccp-system "debian/$(PACKAGENAME).init" |
|
21 |
rm -f ccp-system.service "debian/$(PACKAGENAME).service" |
|
22 |
override_dh_auto_build: |
|
23 |
wget -N --progress=dot:mega "$(URL)/$(BASENAME)" |
|
24 |
7z x "$(BASENAME)" -aoa |
|
25 |
tar --strip-components=1 -xf "$(TARBALL)" ./ccp-system ./ccp-system.service |
|
26 |
cp -f ccp-system "debian/$(PACKAGENAME).init" |
|
27 |
cp -f ccp-system.service "debian/$(PACKAGENAME).service" |
|
28 |
override_dh_auto_install: |
|
29 |
mkdir -p "debian/$(PACKAGENAME)/usr/local/$(NAME)" |
|
30 |
tar --strip-components=1 -xf "$(TARBALL)" --directory "debian/$(PACKAGENAME)/usr/local/$(NAME)" |
|
31 |
override_dh_auto_test: |
|
32 |
|
|
33 |
override_dh_gencontrol: |
|
34 |
dh_gencontrol -- -v$(PACKAGEVERSION) |