3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=dec3ff6ff004868303407165d218bcdf
10 PKG_SOURCE_URL
:=http
://www.lighttpd.net
/download
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 define PKG_mod_template
22 install -d
-m0755
$$(IDIR_
$(1))/usr
/lib
/lighttpd
23 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$(2).so
$$(IDIR_
$(1))/usr
/lib
/lighttpd
/
24 $(RSTRIP
) $$(IDIR_
$(1))
25 $(IPKG_BUILD
) $$(IDIR_
$(1)) $(PACKAGE_DIR
)
29 $(eval
$(call PKG_template
,LIGHTTPD
,lighttpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
30 $(eval
$(call PKG_template
,LIGHTTPD_MOD_ALIAS
,lighttpd-mod-alias
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
31 $(eval
$(call PKG_template
,LIGHTTPD_MOD_AUTH
,lighttpd-mod-auth
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
32 $(eval
$(call PKG_template
,LIGHTTPD_MOD_CGI
,lighttpd-mod-cgi
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
33 $(eval
$(call PKG_template
,LIGHTTPD_MOD_EXPIRE
,lighttpd-mod-expire
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
34 $(eval
$(call PKG_template
,LIGHTTPD_MOD_FASTCGI
,lighttpd-mod-fastcgi
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
35 $(eval
$(call PKG_template
,LIGHTTPD_MOD_PROXY
,lighttpd-mod-proxy
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
36 $(eval
$(call PKG_template
,LIGHTTPD_MOD_REDIRECT
,lighttpd-mod-redirect
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
37 $(eval
$(call PKG_template
,LIGHTTPD_MOD_REWRITE
,lighttpd-mod-rewrite
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
38 $(eval
$(call PKG_template
,LIGHTTPD_MOD_SETENV
,lighttpd-mod-setenv
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
39 $(eval
$(call PKG_template
,LIGHTTPD_MOD_SIMPLE_VHOST
,lighttpd-mod-simple-vhost
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
40 $(eval
$(call PKG_template
,LIGHTTPD_MOD_SSI
,lighttpd-mod-ssi
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
41 $(eval
$(call PKG_template
,LIGHTTPD_MOD_STATUS
,lighttpd-mod-status
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
42 $(eval
$(call PKG_template
,LIGHTTPD_MOD_USERTRACK
,lighttpd-mod-usertrack
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
44 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_ALIAS
,alias
))
45 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_AUTH
,auth
))
46 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_CGI
,cgi
))
47 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_EXPIRE
,expire
))
48 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_FASTCGI
,fastcgi
))
49 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_PROXY
,proxy
))
50 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_REDIRECT
,redirect
))
51 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_REWRITE
,rewrite
))
52 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_SETENV
,setenv
))
53 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_SIMPLE_VHOST
,simple_vhost
))
54 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_SSI
,ssi
))
55 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_STATUS
,status
))
56 $(eval
$(call PKG_mod_template
,LIGHTTPD_MOD_USERTRACK
,usertrack
))
58 $(PKG_BUILD_DIR
)/.configured
:
59 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
60 $(TARGET_CONFIGURE_OPTS
) \
61 CFLAGS
="$(TARGET_CFLAGS)" \
62 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
63 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
65 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
67 --target
=$(GNU_TARGET_NAME
) \
68 --host
=$(GNU_TARGET_NAME
) \
69 --build
=$(GNU_HOST_NAME
) \
75 --datadir=/usr
/share \
76 --includedir=/usr
/include \
77 --infodir=/usr
/share
/info \
78 --libdir=/usr
/lib
/lighttpd \
79 --libexecdir
=/usr
/lib \
80 --localstatedir
=/var \
81 --mandir=/usr
/share
/man \
83 --sysconfdir
=/etc
/lighttpd \
84 $(DISABLE_LARGEFILE
) \
97 --with-openssl
="$(STAGING_DIR)/usr" \
100 --without-webdav-props \
104 $(PKG_BUILD_DIR
)/.built
:
105 rm -rf
$(PKG_INSTALL_DIR
)
106 mkdir
-p
$(PKG_INSTALL_DIR
)
107 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
108 DESTDIR
="$(PKG_INSTALL_DIR)" \
113 install -m0755
-d
$(IDIR_LIGHTTPD
)/etc
114 install -m0644 .
/files
/lighttpd.conf
$(IDIR_LIGHTTPD
)/etc
/
115 install -m0755
-d
$(IDIR_LIGHTTPD
)/etc
/default
116 install -m0644 .
/files
/lighttpd.default
$(IDIR_LIGHTTPD
)/etc
/default
/lighttpd
117 install -m0755
-d
$(IDIR_LIGHTTPD
)/etc
/init.d
118 install -m0755 .
/files
/lighttpd.init
$(IDIR_LIGHTTPD
)/etc
/init.d
/lighttpd
119 install -m0755
-d
$(IDIR_LIGHTTPD
)/usr
/lib
/lighttpd
120 for m in dirlisting indexfile staticfile
; do \
121 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lighttpd
/mod_
$$m.so
$(IDIR_LIGHTTPD
)/usr
/lib
/lighttpd
/ ; \
123 install -m0755
-d
$(IDIR_LIGHTTPD
)/usr
/sbin
124 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/lighttpd
$(IDIR_LIGHTTPD
)/usr
/sbin
/
125 $(RSTRIP
) $(IDIR_LIGHTTPD
)
126 $(IPKG_BUILD
) $(IDIR_LIGHTTPD
) $(PACKAGE_DIR
)