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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
#!/usr/bin/make -f
# -*- makefile -*-
name = myproxy
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
INSTALLDIR = debian/tmp
_docdir = /usr/share/doc/$(name)
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--disable-static \
--includedir=/usr/include/globus \
--with-voms=/usr \
--with-openldap=/usr \
--with-kerberos5=/usr \
--with-sasl2=/usr
override_dh_auto_install:
dh_auto_install
# Remove libtool archives (.la files)
rm $(INSTALLDIR)/usr/lib/*/*.la
# No need for myproxy-server-setup since the debian package will
# perform the needed setup
rm $(INSTALLDIR)/usr/sbin/myproxy-server-setup
# Move documentation to default debian location
mkdir -p $(INSTALLDIR)$(_docdir)/extras
for FILE in login.html myproxy-accepted-credentials-mapapp \
myproxy-cert-checker myproxy-certificate-mapapp \
myproxy-certreq-checker myproxy-crl.cron myproxy.cron \
myproxy-get-delegation.cgi myproxy-get-trustroots.cron \
myproxy-passphrase-policy myproxy-revoke ; do \
mv $(INSTALLDIR)/usr/share/$(name)/$$FILE \
$(INSTALLDIR)$(_docdir)/extras ; \
done
for FILE in PROTOCOL README.sasl REPOSITORY VERSION ; do \
mv $(INSTALLDIR)/usr/share/$(name)/$$FILE \
$(INSTALLDIR)$(_docdir) ; \
done
# Remove irrelevant example configuration files
for FILE in etc.inetd.conf.modifications etc.init.d.myproxy.nonroot \
etc.services.modifications etc.xinetd.myproxy etc.init.d.myproxy \
myproxy-server.service myproxy-server.conf LICENSE* ; do \
rm $(INSTALLDIR)/usr/share/$(name)/$$FILE ; \
done
# Move example configuration file into place
mkdir -p $(INSTALLDIR)/etc
mv $(INSTALLDIR)/usr/share/$(name)/myproxy-server.config \
$(INSTALLDIR)/etc
mkdir -p $(INSTALLDIR)/var/lib/$(name)
chmod 700 $(INSTALLDIR)/var/lib/$(name)
# Create a directory to hold myproxy owned host certificates
mkdir -p $(INSTALLDIR)/etc/grid-security/$(name)
# systemd unit files
install -p -m 644 systemd/myproxy-server.service \
debian/myproxy-server.service
install -p -m 644 systemd/myproxy-server.conf \
debian/myproxy-server.tmpfiles
override_dh_installinit:
dh_installinit --no-enable
override_dh_installsystemd:
dh_installsystemd --no-enable
override_dh_fixperms:
dh_fixperms -X /var/lib/$(name)
|