wok-4.x rev 12403

bozohttpd, cherokee, hiawatha, nginx: add PROVIDE (from cooking wok)
author Stanislas Leduc <stanislas.leduc@balinor.net>
date Thu Aug 22 08:57:32 2013 +0200 (2013-08-22)
parents b94f1272f2de
children e066de79c96a
files bozohttpd/receipt cherokee/receipt cherokee/stuff/cherokee nginx/receipt
line diff
     1.1 --- a/bozohttpd/receipt	Sun Aug 11 00:52:01 2013 +0200
     1.2 +++ b/bozohttpd/receipt	Thu Aug 22 08:57:32 2013 +0200
     1.3 @@ -12,6 +12,7 @@
     1.4  WEB_SITE="http://www.eterna.com.au/$PACKAGE/"
     1.5  WGET_URL="http://www.eterna.com.au/$PACKAGE/$TARBALL"
     1.6  TAGS="http server lightweight cgi ipv6 ssl"
     1.7 +PROVIDE="lighttpd"
     1.8  
     1.9  # Rules to configure and make the package.
    1.10  compile_rules()
     2.1 --- a/cherokee/receipt	Sun Aug 11 00:52:01 2013 +0200
     2.2 +++ b/cherokee/receipt	Thu Aug 22 08:57:32 2013 +0200
     2.3 @@ -8,6 +8,7 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.5  WEB_SITE="http://www.cherokee-project.com/"
     2.6  WGET_URL="http://www.cherokee-project.com/download/1.2/$VERSION/$TARBALL"
     2.7 +PROVIDE="lighttpd"
     2.8  
     2.9  DEPENDS="pcre cyrus-sasl openssl python libmysqlclient libldap ffmpeg"
    2.10  BUILD_DEPENDS="pcre-dev cyrus-sasl-dev openssl-dev openldap-dev python-dev pam-dev libmysqlclient ffmpeg-dev gettext autoconf automake"
     3.1 --- a/cherokee/stuff/cherokee	Sun Aug 11 00:52:01 2013 +0200
     3.2 +++ b/cherokee/stuff/cherokee	Thu Aug 22 08:57:32 2013 +0200
     3.3 @@ -19,7 +19,7 @@
     3.4        exit 1
     3.5      fi
     3.6      echo -n "Starting $DESC: $NAME... "
     3.7 -    $DAEMON $OPTIONS -k start 
     3.8 +    $DAEMON $OPTIONS -d &>/dev/null  
     3.9      status
    3.10      ;;
    3.11    stop)
    3.12 @@ -28,17 +28,7 @@
    3.13        exit 1
    3.14      fi
    3.15      echo -n "Stopping $DESC: $NAME... "
    3.16 -    $DAEMON $OPTION -k stop
    3.17 -    rm $PIDFILE
    3.18 -    status
    3.19 -    ;;
    3.20 -  reload)
    3.21 -    if ! active_pidfile $PIDFILE cherokee ; then
    3.22 -      echo "$NAME is not running."
    3.23 -      exit 1
    3.24 -    fi
    3.25 -    echo -n "Stopping $DESC: $NAME... "
    3.26 -    $DAEMON $OPTION -k graceful
    3.27 +    kill $(cat $PIDFILE)
    3.28      status
    3.29      ;;
    3.30    restart)
    3.31 @@ -47,15 +37,19 @@
    3.32        exit 1
    3.33      fi
    3.34      echo -n "Restarting $DESC: $NAME... "
    3.35 -    $DAEMON $OPTIONS -k restart
    3.36 +    kill $(cat $PIDFILE)
    3.37 +    rm $PIDFILE
    3.38 +    sleep 2
    3.39 +    $DAEMON $OPTIONS -d &>/dev/null
    3.40      status
    3.41      ;;
    3.42    *)
    3.43      echo ""
    3.44 -    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|reload|restart]"
    3.45 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    3.46      echo ""
    3.47      exit 1
    3.48      ;;
    3.49  esac
    3.50  
    3.51  exit 0
    3.52 +
     4.1 --- a/nginx/receipt	Sun Aug 11 00:52:01 2013 +0200
     4.2 +++ b/nginx/receipt	Thu Aug 22 08:57:32 2013 +0200
     4.3 @@ -11,6 +11,7 @@
     4.4  WGET_URL="${WEB_SITE}download//$TARBALL"
     4.5  DEPENDS="pcre openssl zlib"
     4.6  BUILD_DEPENDS="pcre-dev openssl-dev zlib-dev"
     4.7 +PROVIDE="lighttpd"
     4.8  CONFIG_FILES="/etc/nginx"
     4.9  
    4.10  # Rules to configure and make the package.