Commit 2afd5b8b authored by Natanael Copa's avatar Natanael Copa

Merge remote branch 'clandmeter/master'

parents 2da5714e 77a5257b
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=cksfv
pkgver=1.3.10
pkgrel=0
pkgdesc="Simple File Verification"
url="http://zakalwe.fi/~shd/foss/cksfv"
license="GPL"
depends="uclibc"
subpackages="$pkgname-doc"
source="http://zakalwe.fi/~shd/foss/cksfv/files/${pkgname}-${pkgver}.tar.bz2"
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make || return 1
install -cD src/cksfv "$pkgdir"/usr/bin/cksfv
install -cD cksfv.1 "$pkgdir"/usr/share/man/man1/cksfv.1
}
md5sums="8a7085cfd28f7fa20ca4c4842d954048 cksfv-1.3.10.tar.bz2"
Index: fcgi-2.4.0/cgi-fcgi/Makefile.am
===================================================================
--- fcgi-2.4.0.orig/cgi-fcgi/Makefile.am
+++ fcgi-2.4.0/cgi-fcgi/Makefile.am
@@ -11,5 +11,5 @@ INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.
LIBDIR = ../libfcgi
LIBFCGI = $(LIBDIR)/libfcgi.la
-LDADD = $(LIBFCGI)
+LDADD = $(LIBFCGI) -lm
cgi_fcgi_SOURCES = $(INCLUDE_FILES) cgi-fcgi.c
Index: fcgi-2.4.0/examples/Makefile.am
===================================================================
--- fcgi-2.4.0.orig/examples/Makefile.am
+++ fcgi-2.4.0/examples/Makefile.am
@@ -21,7 +21,7 @@ INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.
LIBDIR = ../libfcgi
LIBFCGI = $(LIBDIR)/libfcgi.la
-LDADD = $(LIBFCGI)
+LDADD = $(LIBFCGI) -lm
echo_SOURCES = $(INCLUDE_FILES) echo.c
echo_x_SOURCES = $(INCLUDE_FILES) echo-x.c
Index: fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c
===================================================================
--- fcgi-2.4.0.orig/cgi-fcgi/cgi-fcgi.c
+++ fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c
@@ -21,6 +21,7 @@ static const char rcsid[] = "$Id: cgi-fc
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/types.h>
#include "fcgi_config.h"
@@ -145,7 +146,7 @@ static FCGI_BeginRequestBody MakeBeginRe
static int bytesToRead; /* number of bytes to read from Web Server */
-static int appServerSock = -1; /* Socket connected to FastCGI application,
+static size_t appServerSock = -1; /* Socket connected to FastCGI application,
* used by AppServerReadHandler and
* AppServerWriteHandler. */
static Buffer fromAS; /* Bytes read from the FCGI application server. */
@@ -640,7 +641,7 @@ static int ParseArgs(int argc, char *arg
}
if((av[ac] = (char *)malloc(strlen(tp1)+1)) == NULL) {
fprintf(stderr, "Cannot allocate %d bytes\n",
- strlen(tp1)+1);
+ (int)strlen(tp1)+1);
exit(-1);
}
strcpy(av[ac++], tp1);
Index: fcgi-2.4.0/examples/threaded.c
===================================================================
--- fcgi-2.4.0.orig/examples/threaded.c
+++ fcgi-2.4.0/examples/threaded.c
@@ -24,7 +24,7 @@ static int counts[THREAD_COUNT];
static void *doit(void *a)
{
- int rc, i, thread_id = (int)a;
+ size_t rc, i, thread_id = (size_t)a;
pid_t pid = getpid();
FCGX_Request request;
char *server_name;
@@ -53,7 +53,7 @@ static void *doit(void *a)
"<h1>FastCGI Hello! (multi-threaded C, fcgiapp library)</h1>"
"Thread %d, Process %ld<p>"
"Request counts for %d threads running on host <i>%s</i><p><code>",
- thread_id, pid, THREAD_COUNT, server_name ? server_name : "?");
+ (int)thread_id, pid, THREAD_COUNT, server_name ? server_name : "?");
sleep(2);
@@ -71,7 +71,7 @@ static void *doit(void *a)
int main(void)
{
- int i;
+ size_t i;
pthread_t id[THREAD_COUNT];
FCGX_Init();
Index: fcgi-2.4.0/include/fcgios.h
===================================================================
--- fcgi-2.4.0.orig/include/fcgios.h
+++ fcgi-2.4.0/include/fcgios.h
@@ -93,7 +93,7 @@ extern "C" {
# if defined(__STDC__) || defined(__cplusplus)
typedef void *ClientData;
# else
- typedef int *ClientData;
+ typedef size_t *ClientData;
# endif /* __STDC__ */
#define _CLIENTDATA
#endif
Index: fcgi-2.4.0/libfcgi/os_unix.c
===================================================================
--- fcgi-2.4.0.orig/libfcgi/os_unix.c
+++ fcgi-2.4.0/libfcgi/os_unix.c
@@ -1155,7 +1155,7 @@ int OS_Accept(int listen_sock, int fail_
for (;;) {
do {
-#ifdef HAVE_SOCKLEN
+#ifdef HAVE_SYS_SOCKET_H
socklen_t len = sizeof(sa);
#else
int len = sizeof(sa);
@@ -1255,7 +1255,7 @@ int OS_IsFcgi(int sock)
struct sockaddr_in in;
struct sockaddr_un un;
} sa;
-#ifdef HAVE_SOCKLEN
+#ifdef HAVE_SYS_SOCKET_H
socklen_t len = sizeof(sa);
#else
int len = sizeof(sa);
Index: fcgi-2.4.0/doc/fcgi-devel-kit.htm
===================================================================
--- fcgi-2.4.0.orig/doc/fcgi-devel-kit.htm
+++ fcgi-2.4.0/doc/fcgi-devel-kit.htm
@@ -19,7 +19,7 @@
</HEAD>
<BODY>
<P CLASS="c1">
- <IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"><BR CLEAR="all">
+ <IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"><BR CLEAR="all">
</P>
<H3 CLASS="c2">
FastCGI Developer&#39;s Kit
Index: fcgi-2.4.0/doc/fcgi-java.htm
===================================================================
--- fcgi-2.4.0.orig/doc/fcgi-java.htm
+++ fcgi-2.4.0/doc/fcgi-java.htm
@@ -20,7 +20,7 @@
</HEAD>
<BODY>
<DIV CLASS="c1">
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
</DIV>
<BR CLEAR="all">
<DIV CLASS="c1">
Index: fcgi-2.4.0/doc/fcgi-perf.htm
===================================================================
--- fcgi-2.4.0.orig/doc/fcgi-perf.htm
+++ fcgi-2.4.0/doc/fcgi-perf.htm
@@ -19,7 +19,7 @@
</HEAD>
<BODY>
<DIV CLASS="c1">
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
</DIV>
<BR CLEAR="all">
<DIV CLASS="c1">
Index: fcgi-2.4.0/doc/fcgi-perl.htm
===================================================================
--- fcgi-2.4.0.orig/doc/fcgi-perl.htm
+++ fcgi-2.4.0/doc/fcgi-perl.htm
@@ -19,7 +19,7 @@
</HEAD>
<BODY>
<DIV CLASS="c1">
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
</DIV>
<BR CLEAR="all">
Index: fcgi-2.4.0/doc/fcgi-tcl.htm
===================================================================
--- fcgi-2.4.0.orig/doc/fcgi-tcl.htm
+++ fcgi-2.4.0/doc/fcgi-tcl.htm
@@ -19,7 +19,7 @@
</HEAD>
<BODY>
<DIV CLASS="c1">
- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
</DIV>
<BR CLEAR="all">
<DIV CLASS="c1">
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=fcgi
pkgver=2.4.0
pkgrel=0
pkgdesc="FAST CGI(fcgi) is a language independent, high performant extension to CGI"
url="http://www.fastcgi.com"
license="GPL"
depends="uclibc"
makedepends=""
subpackages="$pkgname-dev"
source="http://www.fastcgi.com/dist/${pkgname}-${pkgver}.tar.gz
20-fcgi-2.4.0-clientdata-pointer.patch
30-fcgi-2.4.0-html-updates.patch"
build() {
cd "$srcdir/$pkgname-$pkgver"
for i in ../*.patch; do
msg "Applying $i"
patch -p1 < $i || return 1
done
# not sure how to use autotools for this apk
# Removed makefile patch and added libs -lm
#aclocal || return 1
#autoconf || return 1
# add missing files so automake doesnt error
#touch NEWS AUTHORS ChangeLog || return 1
#automake --add-missing || return 1
#libtoolize || return 1
export LIBS="$LIBS -lm"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-shared \
--enable-static
make || return 1
make DESTDIR="$pkgdir" install
}
md5sums="d15060a813b91383a9f3c66faf84867e fcgi-2.4.0.tar.gz
d2654525f06451c99b8cdd4cc00a963b 20-fcgi-2.4.0-clientdata-pointer.patch
f26b536786f70b30a2d91c83d56e944c 30-fcgi-2.4.0-html-updates.patch"
Install with proper ownership.
http://bugs.gentoo.org/24178
--- Makefile.in
+++ Makefile.in
@@ -14,10 +14,6 @@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
-# File ownership and group
-BINOWN = bin
-BINGRP = bin
-
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
@@ -131,22 +127,17 @@
$(INSTALL_ROOT)$(includedir) $(INSTALL_ROOT)$(man3dir) \
$(INSTALL_ROOT)$(infodir)
$(LIBTOOL) $(INSTALL) -c libgdbm.la $(INSTALL_ROOT)$(libdir)/libgdbm.la
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h \
- $(INSTALL_ROOT)$(includedir)/gdbm.h
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \
- $(INSTALL_ROOT)$(man3dir)/gdbm.3
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \
- $(INSTALL_ROOT)$(infodir)/gdbm.info
+ $(INSTALL_DATA) gdbm.h $(INSTALL_ROOT)$(includedir)/gdbm.h
+ $(INSTALL_DATA) $(srcdir)/gdbm.3 $(INSTALL_ROOT)$(man3dir)/gdbm.3
+ $(INSTALL_DATA) $(srcdir)/gdbm.info $(INSTALL_ROOT)$(infodir)/gdbm.info
install-compat:
$(srcdir)/mkinstalldirs $(INSTALL_ROOT)$(libdir) \
$(INSTALL_ROOT)$(includedir)
$(LIBTOOL) $(INSTALL) -c libgdbm_compat.la \
$(INSTALL_ROOT)$(libdir)/libgdbm_compat.la
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/dbm.h \
- $(INSTALL_ROOT)$(includedir)/dbm.h
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/ndbm.h \
- $(INSTALL_ROOT)$(includedir)/ndbm.h
+ $(INSTALL_DATA) $(srcdir)/dbm.h $(INSTALL_ROOT)$(includedir)/dbm.h
+ $(INSTALL_DATA) $(srcdir)/ndbm.h $(INSTALL_ROOT)$(includedir)/ndbm.h
#libgdbm.a: $(OBJS) gdbm.h
# rm -f libgdbm.a
Since libgdbm_compat uses libgdbm, make sure we link it in.
http://bugs.gentoo.org/165263
--- Makefile.in
+++ Makefile.in
@@ -161,10 +161,10 @@
$(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
-version-info $(SHLIB_VER) $(LOBJS)
-libgdbm_compat.la: $(C_LOBJS) gdbm.h
+libgdbm_compat.la: $(C_LOBJS) gdbm.h libgdbm.la
rm -f libgdbm_compat.la
$(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
- -version-info $(SHLIB_VER) $(C_LOBJS)
+ -version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
rm -f gdbm.h
Respect system LDFLAGS when generating gdbm libs
http://bugs.gentoo.org/209730
--- Makefile.in
+++ Makefile.in
@@ -146,12 +146,12 @@
libgdbm.la: $(LOBJS) gdbm.h
rm -f libgdbm.la
- $(LIBTOOL) --mode=link $(CC) -o libgdbm.la -rpath $(libdir) \
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libgdbm.la -rpath $(libdir) \
-version-info $(SHLIB_VER) $(LOBJS)
libgdbm_compat.la: $(C_LOBJS) gdbm.h libgdbm.la
rm -f libgdbm_compat.la
- $(LIBTOOL) --mode=link $(CC) -o libgdbm_compat.la -rpath $(libdir) \
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o libgdbm_compat.la -rpath $(libdir) \
-version-info $(SHLIB_VER) $(C_LOBJS) libgdbm.la
gdbm.h: gdbm.proto gdbmerrno.h gdbm.proto2
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=gdbm
pkgver=1.8.3
pkgrel=0
pkgdesc="GNU dbm is a set of database routines that use extensible hashing"
url="http://www.gnu.org/software/gdbm/"
license="GPL"
depends="uclibc"
makedepends=""
install=
subpackages="$pkgname-dev $pkgname-dev"
source="ftp://ftp.nluug.nl/pub/gnu/gdbm/gdbm-1.8.3.tar.gz
30-gdbm-1.8.3-build.patch
20-gdbm-1.8.3-compat-linking.patch
10-gdbm-1.8.3-fix-install-ownership.patch"
build() {
cd "$srcdir/$pkgname-$pkgver"
for i in ../*.patch; do
msg "Applying $i"
patch -p0 < $i || return 1
done
./configure --prefix=/usr \
--includedir=/usr/include/gdbm \
--disable-dependency-tracking \
--enable-fast-install
make || return 1
make INSTALL_ROOT="$pkgdir" install || return 1
make INSTALL_ROOT="$pkgdir" install-compat || return 1
mv "${pkgdir}"/usr/include/gdbm/gdbm.h "${pkgdir}"/usr/include/
}
md5sums="1d1b1d5c0245b1c00aff92da751e9aa1 gdbm-1.8.3.tar.gz
5e76bc4f51640434e4279e940f6c73fb 30-gdbm-1.8.3-build.patch
c8e2323a9e075d5c947cb7c7aeae5384 20-gdbm-1.8.3-compat-linking.patch
4c7b88079898d7cb380e95c8ae99a9f9 10-gdbm-1.8.3-fix-install-ownership.patch"
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=ruby
pkgver=1.8.7_p72
_pkgver=1.8.7-p72
pkgrel=1
pkgdesc="An object-oriented language for quick and easy programming"
url="http://www.ruby-lang.org/en/"
license="Ruby"
depends="zlib openssl libiconv gdbm db readline"
makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2"
#
# maybe its a good idea to split dep libs to seperate pkg's.
#
build() {
cd "$srcdir/$pkgname-${_pkgver}"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-shared
make || return 1
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1
}
md5sums="0b215c46b89b28d7ab8d56d96e72d5b9 ruby-1.8.7-p72.tar.bz2"
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=rubygems
pkgver=1.3.1
pkgrel=0
pkgdesc="Ruby package manager"
url="http://docs.rubygems.org"
license="GPL"
depends="ruby"
makedepends="ruby-dev"
source="http://rubyforge.org/frs/download.php/45905/${pkgname}-${pkgver}.tgz
rubygems-1.3.1-setup.patch"
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p0 -i "$srcdir"/rubygems-1.3.1-setup.patch
ruby setup.rb --prefix=/usr --destdir "$pkgdir"
}
md5sums="a04ee6f6897077c5b75f5fd1e134c5a9 rubygems-1.3.1.tgz
40ef7562319ac6f82bbbe7315c78bdbb rubygems-1.3.1-setup.patch"
--- setup.rb.~1~ 2008-06-22 01:51:11.000000000 +0200
+++ setup.rb 2008-06-28 09:05:54.923666929 +0200
@@ -128,8 +128,8 @@
lib_dir = Gem::ConfigMap[site_or_vendor]
bin_dir = Gem::ConfigMap[:bindir]
else
- lib_dir = File.join prefix, 'lib'
- bin_dir = File.join prefix, 'bin'
+ lib_dir = File.join prefix, Gem::ConfigMap[site_or_vendor]
+ bin_dir = File.join prefix, Gem::ConfigMap[:bindir]
end
end
@@ -240,19 +240,6 @@
end
end
-# Remove source caches
-if install_destdir.empty?
- require 'rubygems/source_info_cache'
-
- user_cache_file = File.join(install_destdir,
- Gem::SourceInfoCache.user_cache_file)
- system_cache_file = File.join(install_destdir,
- Gem::SourceInfoCache.system_cache_file)
-
- rm_f user_cache_file if File.writable? File.dirname(user_cache_file)
- rm_f system_cache_file if File.writable? File.dirname(system_cache_file)
-end
-
# install RDoc
gem_doc_dir = File.join Gem.dir, 'doc'
@@ -262,10 +249,6 @@
if File.writable? gem_doc_dir and
(not File.exist? rubygems_doc_dir or
File.writable? rubygems_doc_dir) then
- puts "Removing old RubyGems RDoc and ri"
- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
- rm_rf dir
- end
def run_rdoc(*args)
begin
@@ -277,7 +260,7 @@
args << '--quiet'
args << '--main' << 'README'
- args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt'
+ args << '.' << 'README'
r = RDoc::RDoc.new
r.document args
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=unixodbc
pkgver=2.2.14
pkgrel=0
pkgdesc="ODBC is an open specification to access Data Sources"
url="http://www.unixodbc.org/"
license="GPL2"
depends="readline"
makedepends="readline-dev"
subpackages="$pkgname-dev"
source="http://www.unixodbc.org/unixODBC-${pkgver}.tar.gz"
build() {
cd "$srcdir/unixODBC-$pkgver"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-gui=no
make || return 1
make -j1 DESTDIR="$pkgdir" install
}
md5sums="f47c2efb28618ecf5f33319140a7acd0 unixODBC-2.2.14.tar.gz"
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
pkgname=vsftpd
pkgver=2.1.0
pkgrel=0
pkgdesc="Very secure ftpd"
url="http://vsftpd.beasts.org"
license="GPL"
depends="openssl"
makedepends="openssl-dev"
subpackages="$pkgname-doc"
source="ftp://vsftpd.beasts.org/users/cevans/vsftpd-${pkgver}.tar.gz
vsftpd-enable-ssl.patch
vsftpd.initd
vsftpd.confd"
build() {
cd "$srcdir/$pkgname-$pkgver"
#Enable SSL support
patch -p0 -i "$srcdir"/vsftpd-enable-ssl.patch || return 1
make || return 1
install -m755 -D vsftpd "$pkgdir"/usr/sbin/vsftpd
install -m644 -D vsftpd.8 "$pkgdir"/usr/share/man/man8/vsftpd.8
install -m644 -D vsftpd.conf.5 "$pkgdir"/usr/share/man/man5/vsftpd.conf.5
install -m644 -D vsftpd.conf "$pkgdir"/etc/vsftpd.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
mkdir -p "$pkgdir"/usr/share/empty
}
md5sums="7890b54e7ffa6106ffbdfda53f47fa41 vsftpd-2.1.0.tar.gz
f3cbaf364cd3c46a2a03b00de9d7e184 vsftpd-enable-ssl.patch
7edf5990c9f5dda983e918c55c92078e vsftpd.initd
431dfe7403323e247a88b97beade5d78 vsftpd.confd"
--- builddefs.h.orig Sun Mar 1 15:18:09 2009
+++ builddefs.h Sun Mar 1 15:15:24 2009
@@ -3,7 +3,7 @@
#undef VSF_BUILD_TCPWRAPPERS
#define VSF_BUILD_PAM
-#undef VSF_BUILD_SSL
+#define VSF_BUILD_SSL
#endif /* VSF_BUILDDEFS_H */
# Sample conf.d file for alpine linux
#
# Specify daemon $OPTS here.
#
OPTS=""
USER="nobody"
GROUP="nobody"
#!/sbin/runscript
NAME=vsftpd
DAEMON=/usr/sbin/$NAME
depend() {
need net
}
start() {
ebegin "Starting ${NAME}"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile /var/run/${NAME}.pid \
--exec ${DAEMON} -- ${OPTS}
eend $?
}
stop() {
ebegin "Stopping ${NAME}"
start-stop-daemon --stop --quiet \
--exec ${DAEMON} \
--pidfile /var/run/${NAME}.pid \
eend $?
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment