From 69116fb9e76481f185c96b685ba6513aa09d054d Mon Sep 17 00:00:00 2001 From: Marko Ratkaj Date: Mon, 8 Jun 2015 15:12:15 +0200 Subject: [PATCH] squid: minor changes in Makefile and init script Signed-off-by: Marko Ratkaj --- net/squid/Makefile | 4 ++-- net/squid/files/squid.init | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/net/squid/Makefile b/net/squid/Makefile index da43127c4..1d34d26ca 100644 --- a/net/squid/Makefile +++ b/net/squid/Makefile @@ -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 diff --git a/net/squid/files/squid.init b/net/squid/files/squid.init index 8b3094840..35d86c877 100644 --- a/net/squid/files/squid.init +++ b/net/squid/files/squid.init @@ -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