2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
19 PKG_SOURCE_URL
:=https
://github.com
/$(PKG_NAME
)/$(PKG_NAME
)
20 PKG_SOURCE_VERSION
:=35be4a5b40aedc6a800c06389c220a8dbf35f1cc
21 PKG_MIRROR_HASH
:=2dab9ba63ee8a2c09ac84f5b69dc5a1e9beb3cf3deede55d405b8bc5dc711e97
27 include $(INCLUDE_DIR
)/uclibc
++.mk
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/e2guardian
32 DEPENDS
:=+libpthread
$(CXX_DEPENDS
) +zlib
+libpcre
34 SUBMENU
:=Web Servers
/Proxies
36 URL
:=http
://e2guardian.org
/cms
/
39 define Package
/e2guardian
/conffiles
40 /etc
/e2guardian
/e2guardianf1.conf
41 /etc
/config
/e2guardian
46 CXXFLAGS
="$$$$CXXFLAGS -fno-rtti" \
50 --with-sysconfsubdir
=e2guardian \
51 --with-proxyuser
=nobody \
52 --with-proxygroup
=nogroup \
54 --with-piddir
=/tmp
/e2guardian
/ \
55 --enable-sslextralists
=no \
58 define Build
/Configure
59 ( cd
$(PKG_BUILD_DIR
); .
/autogen.sh
)
60 $(call Build
/Configure
/Default
,$CONFIGURE_ARGS)
63 define Package
/e2guardian
/install
64 $(INSTALL_DIR
) $(1)/usr
/sbin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2guardian
$(1)/usr
/sbin
/
67 $(INSTALL_DIR
) $(1)/etc
68 $(CP
) $(PKG_INSTALL_DIR
)/etc
/e2guardian
$(1)/etc
/
69 $(INSTALL_CONF
) .
/files
/e2guardianf1.conf
$(1)/etc
/e2guardian
/e2guardianf1.conf
71 $(INSTALL_DIR
) $(1)/etc
/config
72 $(INSTALL_CONF
) .
/files
/e2guardian.config
$(1)/etc
/config
/e2guardian
74 $(INSTALL_DIR
) $(1)/usr
/share
/e2guardian
75 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/share
/e2guardian
/transparent1x1.gif
$(1)/usr
/share
/e2guardian
/
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/share
/e2guardian
/blockedflash.swf
$(1)/usr
/share
/e2guardian
/
78 $(INSTALL_DIR
) $(1)/usr
/share
/e2guardian
/languages
/ukenglish
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/e2guardian
/languages
/ukenglish
/* $(1)/usr
/share
/e2guardian
/languages
/ukenglish
/
81 $(INSTALL_DIR
) $(1)/etc
/init.d
/
82 $(INSTALL_BIN
) .
/files
/e2guardian.init
$(1)/etc
/init.d
/e2guardian
85 $(eval
$(call BuildPackage
,e2guardian
))