[Lunar-commits] <moonbase-other> noip-duc, monkey: Resurrected

Stefan Wold ratler at lunar-linux.org
Sat Jul 14 22:31:32 CEST 2012


commit a72d24dc8e4e9651c623ed0f89b749cd44a42de8
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 14 Jul 2012 13:31:32 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/a72d24dc8e4e9651c623ed0f89b749cd44a42de8

noip-duc, monkey: Resurrected
---
  net/noip-duc/BUILD                                           +8/-0     
  net/noip-duc/DETAILS                                         +15/-0    
  net/noip-duc/init.d/noip-duc                                 +14/-0    
  web/monkey/BUILD                                             +10/-0    
  web/monkey/DETAILS                                           +14/-0    
  web/monkey/init.d/monkey                                     +40/-0    
  6 files changed, 101 insertions (+), 0 deletions (-)

--- /dev/null
+++ b/net/noip-duc/BUILD
@@ -0,0 +1,8 @@
+(
+
+  sedit "s:usr/local:usr:" Makefile  &&
+  sedit "s:\${PREFIX}/etc:/etc:" Makefile  &&
+
+  default_make
+
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/net/noip-duc/DETAILS
@@ -0,0 +1,15 @@
+          MODULE=noip-duc
+         VERSION=2.1.9-1
+          SOURCE=$MODULE-linux.tar.gz
+      SOURCE_URL=http://www.no-ip.com/client/linux/
+      SOURCE_VFY=sha1:1de79cacbf8ac3e6a08530d167a33e3c35a4dd18
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/noip-$VERSION
+        WEB_SITE=http://www.no-ip.com/
+         ENTERED=20070618
+         UPDATED=20120610
+           SHORT="no-ip.com dynamic update client"
+
+cat << EOF
+A second-generation Linux client for the no-ip.com
+dynamic DNS service.
+EOF
--- /dev/null
+++ b/net/noip-duc/init.d/noip-duc
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# noip-duc     This shell script takes care of starting and stopping
+#              NO-IP dynamic IP updates.
+#
+# chkconfig: 2345 65 35
+# description: noip-duc provides support for updating dynamic DNS services.
+# processname: noip2
+# pidfile: /var/run/noip2.pid
+# config: /etc/no-ip2.conf
+
+ARGS="-c /etc/no-ip2.conf"
+
+. /lib/lsb/init-functions
--- /dev/null
+++ b/web/monkey/BUILD
@@ -0,0 +1,10 @@
+(
+./configure    --prefix=/usr                 \
+               --bindir=/usr/bin             \
+               --sysconfdir=/etc/monkey/conf \
+               --datadir=/var/www/monkey/htdocs \
+               --logdir=/var/www/monkey/logs  \
+               --plugdir=/usr/lib/monkey
+               $OPTS
+default_make
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/web/monkey/DETAILS
@@ -0,0 +1,14 @@
+          MODULE=monkey
+         VERSION=1.0.0
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://monkey-project.com/releases/1.0/
+      SOURCE_VFY=sha1:9d2fcf7af3fc3fb6121e155d2e30d3ce25dbb46c
+        WEB_SITE=http://monkey-project.com/
+         ENTERED=20080315
+         UPDATED=20120610
+           SHORT="A fast and light web server for Linux."
+
+cat << EOF
+Monkey is a Web server written in C that works under Linux. This
+is an open source project based on the HTTP/1.1 protocol.
+EOF
--- /dev/null
+++ b/web/monkey/init.d/monkey
@@ -0,0 +1,40 @@
+#!/bin/bash
+#
+# Startup script for Monkey Web Server
+#
+# chkconfig: 345 85 15
+# description: a HTTP/1.1 Web server
+#
+# processname: monkey
+# pidfile: /var/www/monkey/logs/monkey.pid
+# config: /etc/monkey/conf/monkey.conf
+
+PID=/var/www/monkey/logs/monkey.pid
+PROG=/usr/bin/monkey
+
+start() {
+    echo -n "Starting monkey: "
+    $PROG -D > /dev/null 2>&1 &&
+    echo -e "$RESULT_OK" ||
+    echo -e "$RESULT_FAIL"
+}
+
+stop() {
+    echo -n "Stopping Monkey: "
+    killall -q $PROG &&
+    if [ -e $PID ]; then rm $PID; fi
+    echo -e "$RESULT_OK" ||
+    echo -e "$RESULT_FAIL"
+}
+
+restart() {
+    $0 stop
+    $0 start
+}
+
+case "$1" in
+    start|stop|restart) ;;
+    *) echo "Usage: $0 {start|stop|restart}" ; exit 1 ;;
+esac
+
+. /lib/lsb/init-functions




More information about the Lunar-commits mailing list