squid: minor changes in Makefile and init script

Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
This commit is contained in:
Marko Ratkaj 2015-06-08 15:12:15 +02:00 committed by Luka Perkov
parent 32673f9b0b
commit 69116fb9e7
2 changed files with 5 additions and 3 deletions

View file

@ -89,11 +89,11 @@ CONFIGURE_ARGS += \
--disable-arch-native \
--with-krb5-config=no \
--without-libcap \
--without-netfilter-conntrack \
--without-netfilter-conntrack
CONFIGURE_VARS += \
ac_cv_header_linux_netfilter_ipv4_h=yes \
ac_cv_epoll_works=yes \
ac_cv_epoll_works=yes
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/lib all

View file

@ -25,7 +25,9 @@ start_service() {
return 1
}
mkdir -p $(dirname $CONFIGFILE)
config_dir=$(dirname $CONFIGFILE)
[ -d $config_dir ] || mkdir -p $config_dir && chown nobody:nogroup $config_dir
[ -d $coredump_dir ] || mkdir -p $coredump_dir && chown nobody:nogroup $coredump_dir
cat $config_file > $CONFIGFILE
echo http_port $http_port >> $CONFIGFILE