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
>
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE_URL
:=https
://github.com
/e2guardian
/e2guardian.git
21 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/uclibc
++.mk
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/e2guardian
31 DEPENDS
:=+libpthread
$(CXX_DEPENDS
) +zlib
+libpcre
33 SUBMENU
:=Web Servers
/Proxies
35 URL
:=http
://e2guardian.org
/cms
/
38 define Package
/e2guardian
/conffiles
39 /etc
/e2guardian
/e2guardianf1.conf
40 /etc
/config
/e2guardian
45 CXXFLAGS
="$$$$CXXFLAGS -fno-rtti" \
49 --with-sysconfsubdir
=e2guardian \
50 --with-proxyuser
=root \
51 --with-proxygroup
=root \
54 define Build
/Configure
55 $(call Build
/Configure
/Default
,$CONFIGURE_ARGS)
58 define Package
/e2guardian
/install
59 $(INSTALL_DIR
) $(1)/usr
/sbin
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/e2guardian
$(1)/usr
/sbin
/
62 $(INSTALL_DIR
) $(1)/etc
63 $(CP
) $(PKG_INSTALL_DIR
)/etc
/e2guardian
$(1)/etc
/
64 $(INSTALL_CONF
) .
/files
/e2guardianf1.conf
$(1)/etc
/e2guardian
/e2guardianf1.conf
66 $(INSTALL_DIR
) $(1)/etc
/config
67 $(INSTALL_CONF
) .
/files
/e2guardian.config
$(1)/etc
/config
/e2guardian
69 $(INSTALL_DIR
) $(1)/usr
/share
/e2guardian
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/share
/e2guardian
/transparent1x1.gif
$(1)/usr
/share
/e2guardian
/
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/share
/e2guardian
/blockedflash.swf
$(1)/usr
/share
/e2guardian
/
73 $(INSTALL_DIR
) $(1)/usr
/share
/e2guardian
/languages
/ukenglish
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/e2guardian
/languages
/ukenglish
/* $(1)/usr
/share
/e2guardian
/languages
/ukenglish
/
76 $(INSTALL_DIR
) $(1)/etc
/init.d
/
77 $(INSTALL_BIN
) .
/files
/e2guardian.init
$(1)/etc
/init.d
/e2guardian
80 $(eval
$(call BuildPackage
,e2guardian
))