2005-05-16 21:41:16 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lighttpd
|
2005-10-18 04:02:34 +03:00
|
|
|
PKG_VERSION:=1.4.6
|
2005-05-16 21:41:16 +03:00
|
|
|
PKG_RELEASE:=1
|
2005-10-18 04:02:34 +03:00
|
|
|
PKG_MD5SUM:=dec3ff6ff004868303407165d218bcdf
|
2005-05-16 21:41:16 +03:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://www.lighttpd.net/download/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
define PKG_mod_template
|
|
|
|
|
|
|
|
$$(IPKG_$(1)):
|
2005-09-22 10:22:14 +03:00
|
|
|
install -d -m0755 $$(IDIR_$(1))/usr/lib/lighttpd
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/lib/lighttpd/mod_$(2).so $$(IDIR_$(1))/usr/lib/lighttpd/
|
2005-05-16 21:41:16 +03:00
|
|
|
$(RSTRIP) $$(IDIR_$(1))
|
|
|
|
$(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD,lighttpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_ALIAS,lighttpd-mod-alias,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_AUTH,lighttpd-mod-auth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_CGI,lighttpd-mod-cgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-09-22 10:22:14 +03:00
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_EXPIRE,lighttpd-mod-expire,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-07-04 15:11:08 +03:00
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_FASTCGI,lighttpd-mod-fastcgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-05-16 21:41:16 +03:00
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_PROXY,lighttpd-mod-proxy,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_REDIRECT,lighttpd-mod-redirect,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_REWRITE,lighttpd-mod-rewrite,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_SETENV,lighttpd-mod-setenv,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_SIMPLE_VHOST,lighttpd-mod-simple-vhost,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-09-22 10:22:14 +03:00
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_SSI,lighttpd-mod-ssi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-05-16 21:41:16 +03:00
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_STATUS,lighttpd-mod-status,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,LIGHTTPD_MOD_USERTRACK,lighttpd-mod-usertrack,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_ALIAS,alias))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_AUTH,auth))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_CGI,cgi))
|
2005-09-22 10:22:14 +03:00
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_EXPIRE,expire))
|
2005-07-04 15:11:08 +03:00
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_FASTCGI,fastcgi))
|
2005-05-16 21:41:16 +03:00
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_PROXY,proxy))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_REDIRECT,redirect))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_REWRITE,rewrite))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_SETENV,setenv))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_SIMPLE_VHOST,simple_vhost))
|
2005-09-22 10:22:14 +03:00
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_SSI,ssi))
|
2005-05-16 21:41:16 +03:00
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_STATUS,status))
|
|
|
|
$(eval $(call PKG_mod_template,LIGHTTPD_MOD_USERTRACK,usertrack))
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2005-09-22 10:22:14 +03:00
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
2005-05-16 21:41:16 +03:00
|
|
|
PCRE_LIB="-lpcre" \
|
2005-09-22 10:22:14 +03:00
|
|
|
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
2005-05-16 21:41:16 +03:00
|
|
|
./configure \
|
2005-09-22 10:22:14 +03:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib/lighttpd \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc/lighttpd \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--without-attr \
|
|
|
|
--without-bzip2 \
|
|
|
|
--without-fam \
|
|
|
|
--without-gdbm \
|
|
|
|
--without-ldap \
|
|
|
|
--without-lua \
|
|
|
|
--without-memcache \
|
|
|
|
--without-mysql \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--with-pcre \
|
|
|
|
--without-valgrind \
|
|
|
|
--without-webdav-props \
|
2005-05-16 21:41:16 +03:00
|
|
|
)
|
2005-05-20 00:14:18 +03:00
|
|
|
touch $@
|
2005-05-16 21:41:16 +03:00
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-05-20 00:14:18 +03:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
2005-05-16 21:41:16 +03:00
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2005-05-20 00:14:18 +03:00
|
|
|
all install
|
|
|
|
touch $@
|
2005-05-16 21:41:16 +03:00
|
|
|
|
|
|
|
$(IPKG_LIGHTTPD):
|
|
|
|
install -m0755 -d $(IDIR_LIGHTTPD)/etc
|
|
|
|
install -m0644 ./files/lighttpd.conf $(IDIR_LIGHTTPD)/etc/
|
|
|
|
install -m0755 -d $(IDIR_LIGHTTPD)/etc/default
|
|
|
|
install -m0644 ./files/lighttpd.default $(IDIR_LIGHTTPD)/etc/default/lighttpd
|
|
|
|
install -m0755 -d $(IDIR_LIGHTTPD)/etc/init.d
|
|
|
|
install -m0755 ./files/lighttpd.init $(IDIR_LIGHTTPD)/etc/init.d/lighttpd
|
2005-09-22 10:22:14 +03:00
|
|
|
install -m0755 -d $(IDIR_LIGHTTPD)/usr/lib/lighttpd
|
|
|
|
for m in dirlisting indexfile staticfile; do \
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lighttpd/mod_$$m.so $(IDIR_LIGHTTPD)/usr/lib/lighttpd/ ; \
|
|
|
|
done
|
2005-05-16 21:41:16 +03:00
|
|
|
install -m0755 -d $(IDIR_LIGHTTPD)/usr/sbin
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/lighttpd $(IDIR_LIGHTTPD)/usr/sbin/
|
|
|
|
$(RSTRIP) $(IDIR_LIGHTTPD)
|
|
|
|
$(IPKG_BUILD) $(IDIR_LIGHTTPD) $(PACKAGE_DIR)
|
|
|
|
|