2003-10-07 03:06:06 +09:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
|
|
|
# Add here commands to configure the package.
|
|
|
|
touch configure-stamp
|
|
|
|
|
2011-10-22 14:24:00 +02:00
|
|
|
build: build-arch build-indep
|
|
|
|
|
|
|
|
build-arch: build-stamp
|
|
|
|
|
|
|
|
build-indep: build-stamp
|
2003-10-07 03:06:06 +09:00
|
|
|
|
2016-11-30 21:20:53 -06:00
|
|
|
build-stamp: configure-stamp
|
2003-10-07 03:06:06 +09:00
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
# Add here commands to compile the package.
|
|
|
|
$(MAKE)
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2014-09-27 15:14:00 -05:00
|
|
|
rm -f build-stamp configure-stamp debian/config
|
2003-10-07 03:06:06 +09:00
|
|
|
# Add here commands to clean up after the build process.
|
2008-08-09 14:58:24 -03:00
|
|
|
[ ! -f Makefile ] || $(MAKE) clean
|
2003-10-07 03:06:06 +09:00
|
|
|
|
2007-03-04 14:12:23 +09:00
|
|
|
debconf-updatepo
|
|
|
|
|
2003-10-07 03:06:06 +09:00
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2011-10-22 14:24:00 +02:00
|
|
|
dh_prep
|
2003-10-07 03:06:06 +09:00
|
|
|
dh_installdirs
|
|
|
|
# Add here commands to install the package into debian/ca-certificates.
|
|
|
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/ca-certificates
|
|
|
|
(cd $(CURDIR)/debian/ca-certificates/usr/share/ca-certificates; \
|
|
|
|
crts=""; \
|
2016-01-04 11:08:26 -06:00
|
|
|
for crt in $$(find . -type f -name '*.crt' -print | LC_ALL=C sort); \
|
2003-10-07 03:06:06 +09:00
|
|
|
do \
|
|
|
|
crt=$$(echo $$crt | sed -e 's/\.\///'); \
|
|
|
|
if test "$$crts" = ""; then \
|
|
|
|
crts="$$crt"; \
|
|
|
|
else \
|
|
|
|
crts="$$crts, $$crt"; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
cd $(CURDIR)/debian; \
|
2013-06-10 19:52:15 +02:00
|
|
|
sed -e "s|#INITIAL_CERTS#|$$crts|" \
|
2003-10-07 03:06:06 +09:00
|
|
|
config.in > config)
|
2016-11-30 21:20:53 -06:00
|
|
|
# udeb handling
|
|
|
|
install -d -m 0755 "$(CURDIR)/debian/ca-certificates-udeb/etc/ssl/certs"
|
|
|
|
(cd mozilla; \
|
|
|
|
$(MAKE) install CERTSDIR="$(CURDIR)/debian/ca-certificates-udeb/etc/ssl/certs")
|
2018-04-09 18:43:49 -05:00
|
|
|
openssl rehash -v "$(CURDIR)/debian/ca-certificates-udeb/etc/ssl/certs"
|
2003-10-07 03:06:06 +09:00
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2016-11-30 21:20:53 -06:00
|
|
|
dh_link
|
2009-08-14 11:10:00 +02:00
|
|
|
dh_installdebconf -n
|
2003-10-07 03:06:06 +09:00
|
|
|
dh_installdocs
|
|
|
|
dh_installexamples
|
|
|
|
dh_installman sbin/update-ca-certificates.8
|
2016-11-30 21:20:53 -06:00
|
|
|
dh_installchangelogs
|
2013-09-06 11:31:06 -05:00
|
|
|
dh_compress -X examples
|
2003-10-07 03:06:06 +09:00
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
|
|
|
# We have nothing to do by default.
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|