1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/lighttpd/trunk/Makefile

Revision 17133, 3.9 KB (checked in by wahwah, 3 months ago)

lighttpd/trunk: Update library dependencies

  • Property svn:keywords set to Id
Line 
1# $Id$
2NAME = lighttpd
3VERSION = 1.4.30
4CATEGORIES = server
5GARTYPE = v2
6
7DESCRIPTION = HTTP server built for security, speed, compliance, and flexibility
8define BLURB
9  Security, speed, compliance, and flexibility -- all of these describe lighttpd
10  (pron. lighty) which is rapidly redefining efficiency of a webserver; as it is
11  designed and optimized for high performance environments. With a small memory
12  footprint compared to other web-servers, effective management of the cpu-load,
13  and advanced feature set (FastCGI, SCGI, Auth, Output-Compression,
14  URL-Rewriting and many more) lighttpd is the perfect solution for every server
15  that is suffering load problems. And best of all it's Open Source licensed
16  under the revised BSD license.
17endef
18
19MASTER_SITES = http://download.lighttpd.net/lighttpd/releases-1.4.x/
20DISTFILES   += $(NAME)-$(VERSION).tar.gz
21DISTFILES   += cswlighttpd
22
23PATCHFILES += 0001-Work-around-linking-problem-buffer.c.patch
24
25# When mkdir is issued on an automounted directory like /home/<someuser> errno is
26# set to ENOSYS halting recursive directory generation. This patches handles
27# ENOSYS similar to EEXIST and just continues with the creation which then may
28# or may not work later on.
29#
30# There's a thread started on lighttpd forums about the issue:
31#   http://redmine.lighttpd.net/boards/2/topics/4163
32PATCHFILES += 0003-Ignore-ENOSYS-on-mkdir-which-happens-on-automounted-.patch
33
34PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386                                                                         
35PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
36
37PACKAGES += CSWlighttpd
38CATALOGNAME_CSWlighttpd = lighttpd
39SPKG_DESC_CSWlighttpd = HTTP server built for security, speed, compliance, and flexibility
40RUNTIME_DEP_PKGS_CSWlighttpd += CSWlibbz2-1-0
41RUNTIME_DEP_PKGS_CSWlighttpd += CSWlibpcre1
42RUNTIME_DEP_PKGS_CSWlighttpd += CSWlibssl0-9-8
43RUNTIME_DEP_PKGS_CSWlighttpd += CSWlibz1
44
45EXTRA_LINKER_FLAGS += -lsendfile
46
47# To fix undefined symbol 'dlopen' on Solaris 9
48EXTRA_LINKER_FLAGS_5.9 += -ldl
49EXTRA_LINKER_FLAGS += $(EXTRA_LINKER_FLAGS_$(GAROSREL))
50
51# lighttpd puts its modules under libdir, so we pass libdir as a subdirectory,
52# because modules are not supposed to be in /opt/csw/lib.
53libdir_install = $(prefix)/lib/lighttpd
54
55CONFIGURE_ARGS  = $(DIRPATHS)
56
57CONFIGURE_ARGS += --with-openssl=$(prefix)
58EXTRA_LINKER_FLAGS += -lcrypto
59
60# Solaris 9 does not have IPV6_V6ONLY.
61# IPv6 support only works on Solaris 10.
62CONFIGURE_ARGS_5.9 = --disable-ipv6
63CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(GAROSREL))
64
65INITSMF = $(sysconfdir)/init\.d/cswlighttpd
66PRESERVECONF = $(sysconfdir)/lighttpd\.conf
67USERGROUP = $(sysconfdir)/pkg/$(NAME)/cswusergroup
68
69# Migrating the configuration file from /opt/csw/etc to /etc/opt/csw
70MIGRATE_FILES = lighttpd.conf
71
72# To allow lighttpd to write logs
73PROTOTYPE_MODIFIERS = user
74PROTOTYPE_FILES_user = $(localstatedir)/log/lighttpd
75PROTOTYPE_USER_user = lighttpd
76PROTOTYPE_GROUP_user = lighttpd
77PROTOTYPE_CLASS_user = ugfiles
78
79BUILD64 = 1
80ISAEXEC = 1
81
82include gar/category.mk
83
84post-install-modulated:
85        ginstall -d -m 755 $(DESTDIR)$(sysconfdir)/init.d
86        ginstall -m 755 $(DOWNLOADDIR)/cswlighttpd $(DESTDIR)$(sysconfdir)/init.d
87        # ginstall -m 644 $(WORKSRC)/doc/config/lighttpd.conf $(DESTDIR)$(sysconfdir)
88        # gsed -i -e 's+/usr/local+/opt/csw+g' $(DESTDIR)$(sysconfdir)/lighttpd.conf
89        ginstall -m 644 $(FILEDIR)/lighttpd.conf $(DESTDIR)$(sysconfdir)
90        gsed -i -e 's+/usr/local+/opt/csw+g' $(DESTDIR)$(sysconfdir)/lighttpd.conf
91        ginstall -d -m 755 $(DESTDIR)$(localstatedir)/run
92        ginstall -d -m 755 $(DESTDIR)$(datadir)/lighttpd-root
93        echo 'lighttpd is working!' > $(DESTDIR)$(datadir)/lighttpd-root/index.html
94        ginstall -d -m 755 $(DESTDIR)$(localstatedir)/log/lighttpd
95        ginstall -d -m 755 $(DESTDIR)$(sysconfdir)/pkg/$(NAME)
96        echo "lighttpd:lighttpd:lighttpd web server::::" \
97                > $(DESTDIR)$(sysconfdir)/pkg/$(NAME)/cswusergroup
98        (cd $(DESTDIR)$(libdir_install); ln -s $(ISA_DEFAULT) 32)
99        (cd $(DESTDIR)$(libdir_install); ln -s $(ISA_DEFAULT64) 64)
100        @$(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.