source: squid-ssl/trunk/fuentes/debian/rules @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

  • Property svn:executable set to *
File size: 3.9 KB
Line 
1#! /usr/bin/make -f
2
3export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4export DEB_CFLAGS_MAINT_APPEND = -Wall
5include /usr/share/dpkg/buildflags.mk
6
7include /usr/share/cdbs/1/rules/debhelper.mk
8include /usr/share/cdbs/1/class/autotools.mk
9include /usr/share/cdbs/1/rules/autoreconf.mk
10
11INSTALLDIR := $(CURDIR)/debian/tmp
12datadir=/usr/share/squid-ssl
13
14DEB_DH_INSTALL_SOURCEDIR := $(INSTALLDIR)
15DEB_INSTALL_DOCS_squid-common := CONTRIBUTORS CREDITS QUICKSTART RELEASENOTES.html \
16                                                SPONSORS
17
18DEB_CONFIGURE_EXTRA_FLAGS := BUILDCXXFLAGS="$(CXXFLAGS) $(LDFLAGS)" \
19                --program-suffix=-ssl \
20                --datadir=/usr/share/squid-ssl \
21                --sysconfdir=/etc/squid-ssl \
22                --libexecdir=/usr/lib/squid-ssl \
23                --mandir=/usr/share/man \
24                --enable-inline \
25                --disable-arch-native \
26                --enable-async-io=8 \
27                --enable-storeio="ufs,aufs,diskd,rock" \
28                --enable-removal-policies="lru,heap" \
29                --enable-delay-pools \
30                --enable-cache-digests \
31                --enable-icap-client \
32                --enable-follow-x-forwarded-for \
33                --enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB" \
34                --enable-auth-digest="file,LDAP" \
35                --enable-auth-negotiate="kerberos,wrapper" \
36                --enable-auth-ntlm="fake,smb_lm" \
37                --enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group" \
38                --enable-url-rewrite-helpers="fake" \
39                --enable-eui \
40                --enable-esi \
41                --enable-icmp \
42                --enable-zph-qos \
43                --enable-ecap \
44                --enable-ssl-crtd \
45                --disable-translation \
46                --with-swapdir=/var/spool/squid-ssl \
47                --with-logdir=/var/log/squid-ssl \
48                --with-pidfile=/var/run/squid-ssl.pid \
49                --with-filedescriptors=65536 \
50                --with-large-files \
51                --with-default-user=proxy \
52                --with-openssl
53
54BUILDINFO := $(shell lsb_release -si 2>/dev/null)
55
56DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
57
58DEB_CONFIGURE_EXTRA_FLAGS += --enable-build-info="$(BUILDINFO) $(DEB_HOST_ARCH_OS)"
59
60ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
61                DEB_CONFIGURE_EXTRA_FLAGS += --enable-kqueue
62endif
63ifeq ($(DEB_HOST_ARCH_OS), linux)
64                DEB_CONFIGURE_EXTRA_FLAGS += --enable-linux-netfilter
65endif
66
67DEB_MAKE_CLEAN_TARGET = distclean
68
69DEB_FIXPERMS_EXCLUDE = /usr/lib/squid-ssl/pinger-ssl
70
71install/squid-ssl::
72        install -m 755 -g root -d $(INSTALLDIR)/usr/lib/cgi-bin
73        mv $(INSTALLDIR)/etc/squid-ssl/squid.conf.documented $(INSTALLDIR)/etc/squid-ssl/squid.conf
74        mv $(INSTALLDIR)/usr/lib/squid-ssl/cachemgr.cgi-ssl $(INSTALLDIR)/usr/lib/cgi-bin/cachemgr.cgi-ssl
75        install -m 755 -g root -d $(INSTALLDIR)/etc/init.d
76        install -m 755 -g root -d $(INSTALLDIR)/etc/logrotate.d
77        install -m 755 -g root -d $(INSTALLDIR)/etc/resolvconf
78        install -m 755 -g root -d $(INSTALLDIR)/etc/resolvconf/update-libc.d
79        install -m 755 -g root -d $(INSTALLDIR)/etc/ufw/applications.d
80        install -m 755 -g root debian/squid-ssl.rc $(INSTALLDIR)/etc/init.d/squid-ssl
81        install -m 755 -g root debian/squid-ssl.resolvconf $(INSTALLDIR)/etc/resolvconf/update-libc.d/squid-ssl
82        install -m 644 -g root debian/squid-ssl.logrotate $(INSTALLDIR)/etc/logrotate.d/squid-ssl
83        install -m 644 -g root debian/squid-ssl.ufw.profile $(INSTALLDIR)/etc/ufw/applications.d/squid-ssl
84        install -m 755 -g root -d debian/squid-ssl/var/log
85        install -m 755 -g root -d debian/squid-ssl/var/spool
86        install -m 755 -g root -d debian/squid-ssl/var/run
87        install -m 750 -o proxy -g proxy -d debian/squid-ssl/var/log/squid-ssl
88        install -m 750 -o proxy -g proxy -d debian/squid-ssl/var/spool/squid-ssl
89#       install -m 755 -g root -d $(INSTALLDIR)/usr/share/man/man1
90        mv $(INSTALLDIR)/usr/bin/purge-ssl $(INSTALLDIR)/usr/bin/squid-purge-ssl
91#       install -m 644 -g root debian/squid-ssl-purge.8  $(INSTALLDIR)/usr/share/man/man8
92        chmod 4755 $(INSTALLDIR)/usr/lib/squid-ssl/pinger-ssl
93        install -m 755 -g root -d $(INSTALLDIR)/etc/apparmor.d/force-complain
94        install -m 755 -g root -d $(INSTALLDIR)/etc/apparmor.d/disable
95        install -m 644 -g root debian/usr.sbin.squid-ssl $(INSTALLDIR)/etc/apparmor.d
96        dh_apparmor --profile-name=usr.sbin.squid-ssl -psquid
97
98clean::
99        # nothing to do
Note: See TracBrowser for help on using the repository browser.