[arch-commits] Commit in dante/trunk (PKGBUILD)

2020-11-01 Thread Felix Yan via arch-commits
Date: Monday, November 2, 2020 @ 05:09:03
  Author: felixonmars
Revision: 739081

upgpkg: dante 1.4.2-4: libxcrypt rebuild

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-02 05:08:58 UTC (rev 739080)
+++ PKGBUILD2020-11-02 05:09:03 UTC (rev 739081)
@@ -3,12 +3,12 @@
 
 pkgname=dante
 pkgver=1.4.2
-pkgrel=3
+pkgrel=4
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="https://www.inet.no/dante";
 arch=(x86_64)
 license=('custom')
-depends=('pam' 'krb5')
+depends=('krb5' 'libxcrypt' 'pam')
 backup=('etc/socks.conf'
 'etc/sockd.conf')
 source=(ftp://ftp.inet.no/pub/socks/$pkgname-$pkgver.tar.gz


[arch-commits] Commit in dante/trunk (PKGBUILD)

2020-07-07 Thread Felix Yan via arch-commits
Date: Tuesday, July 7, 2020 @ 16:03:56
  Author: felixonmars
Revision: 659087

upgpkg: dante 1.4.2-3: reproducibility rebuild

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-07 16:03:53 UTC (rev 659086)
+++ PKGBUILD2020-07-07 16:03:56 UTC (rev 659087)
@@ -3,7 +3,7 @@
 
 pkgname=dante
 pkgver=1.4.2
-pkgrel=2
+pkgrel=3
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="https://www.inet.no/dante";
 arch=(x86_64)


[arch-commits] Commit in dante/trunk (PKGBUILD)

2018-11-09 Thread Felix Yan via arch-commits
Date: Friday, November 9, 2018 @ 23:56:34
  Author: felixonmars
Revision: 405424

PIE/BUILDINFO rebuild

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-11-09 23:56:12 UTC (rev 405423)
+++ PKGBUILD2018-11-09 23:56:34 UTC (rev 405424)
@@ -3,7 +3,7 @@
 
 pkgname=dante
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="https://www.inet.no/dante";
 arch=(x86_64)


[arch-commits] Commit in dante/trunk (PKGBUILD)

2018-11-03 Thread Felix Yan via arch-commits
Date: Sunday, November 4, 2018 @ 02:20:54
  Author: felixonmars
Revision: 401408

update checksum (FS#60544)

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |   20 +---
 1 file changed, 9 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-11-04 02:15:29 UTC (rev 401407)
+++ PKGBUILD2018-11-04 02:20:54 UTC (rev 401408)
@@ -10,28 +10,26 @@
 license=('custom')
 depends=('pam' 'krb5')
 backup=('etc/socks.conf'
-   'etc/sockd.conf')
-source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
-   sockd.tmpfiles.d
-   sockd.service)
-sha256sums=('baa25750633a7f9f37467ee43afdf7a95c80274394eddd7dcd4e1542aa75caad'
+'etc/sockd.conf')
+source=(ftp://ftp.inet.no/pub/socks/$pkgname-$pkgver.tar.gz
+sockd.tmpfiles.d
+sockd.service)
+sha256sums=('4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7'
 '40d578ef1b802e3813236459b2dfb13fbec6537ae8f55c0c7cbd4401d65da878'
 '7d5f1fddc7e81e5447db662bcc02bbe14f616b403da92e5183e82661d4bc92ae')
 
 build() {
-  cd "$srcdir"/${pkgname}-${pkgver}
-  [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc \
-   --sbindir=/usr/bin \
-   --disable-libwrap
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin 
--disable-libwrap
   make
 }
 
 package() {
-  cd "$srcdir"/${pkgname}-${pkgver}
+  cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
   install -dm0755 "$pkgdir"/etc
   cp example/{socks,sockd}.conf "$pkgdir"/etc
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
   install -Dm0644 "$srcdir"/sockd.service 
"$pkgdir"/usr/lib/systemd/system/sockd.service
   install -Dm0644 "$srcdir"/sockd.tmpfiles.d 
"$pkgdir"/usr/lib/tmpfiles.d/sockd.conf
 }


[arch-commits] Commit in dante/trunk (PKGBUILD)

2017-02-10 Thread Sergej Pupykin
Date: Friday, February 10, 2017 @ 10:57:39
  Author: spupykin
Revision: 211721

upgpkg: dante 1.4.2-1

upd

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-02-10 10:57:35 UTC (rev 211720)
+++ PKGBUILD2017-02-10 10:57:39 UTC (rev 211721)
@@ -3,10 +3,10 @@
 # Contributor: Guillem Rieu 
 
 pkgname=dante
-pkgver=1.4.1
-pkgrel=3
+pkgver=1.4.2
+pkgrel=1
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
-url="http://www.inet.no/dante";
+url="https://www.inet.no/dante";
 arch=(i686 x86_64)
 license=('custom')
 depends=('pam' 'krb5')
@@ -15,9 +15,9 @@
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
sockd.tmpfiles.d
sockd.service)
-md5sums=('68c2ce12119e12cea11a90c7a80efa8f'
- '8588bb1cf6e9cde0f542a96edc0a0f17'
- 'f5520e3350de5d4d1baa05cf33678c06')
+sha256sums=('baa25750633a7f9f37467ee43afdf7a95c80274394eddd7dcd4e1542aa75caad'
+'40d578ef1b802e3813236459b2dfb13fbec6537ae8f55c0c7cbd4401d65da878'
+'7d5f1fddc7e81e5447db662bcc02bbe14f616b403da92e5183e82661d4bc92ae')
 
 build() {
   cd "$srcdir"/${pkgname}-${pkgver}


[arch-commits] Commit in dante/trunk (PKGBUILD sockd.install)

2017-01-24 Thread Sergej Pupykin
Date: Tuesday, January 24, 2017 @ 11:48:54
  Author: spupykin
Revision: 208800

upgpkg: dante 1.4.1-3

upd

Modified:
  dante/trunk/PKGBUILD
Deleted:
  dante/trunk/sockd.install

---+
 PKGBUILD  |3 +--
 sockd.install |7 ---
 2 files changed, 1 insertion(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-24 10:41:29 UTC (rev 208799)
+++ PKGBUILD2017-01-24 11:48:54 UTC (rev 208800)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.4.1
-pkgrel=1
+pkgrel=3
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -12,7 +12,6 @@
 depends=('pam' 'krb5')
 backup=('etc/socks.conf'
'etc/sockd.conf')
-install=sockd.install
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
sockd.tmpfiles.d
sockd.service)

Deleted: sockd.install
===
--- sockd.install   2017-01-24 10:41:29 UTC (rev 208799)
+++ sockd.install   2017-01-24 11:48:54 UTC (rev 208800)
@@ -1,7 +0,0 @@
-post_install() {
-   systemd-tmpfiles --create sockd.conf
-}
-
-post_upgrade() {
-   systemd-tmpfiles --create sockd.conf
-}


[arch-commits] Commit in dante/trunk (PKGBUILD)

2014-09-08 Thread Sergej Pupykin
Date: Monday, September 8, 2014 @ 11:46:44
  Author: spupykin
Revision: 118646

upgpkg: dante 1.4.1-1

upd

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-09-08 09:46:35 UTC (rev 118645)
+++ PKGBUILD2014-09-08 09:46:44 UTC (rev 118646)
@@ -3,8 +3,8 @@
 # Contributor: Guillem Rieu 
 
 pkgname=dante
-pkgver=1.4.0
-pkgrel=4
+pkgver=1.4.1
+pkgrel=1
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -16,7 +16,7 @@
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
sockd.tmpfiles.d
sockd.service)
-md5sums=('c117a3ce25afb936f13b76f1d2524879'
+md5sums=('68c2ce12119e12cea11a90c7a80efa8f'
  '8588bb1cf6e9cde0f542a96edc0a0f17'
  'f5520e3350de5d4d1baa05cf33678c06')
 



[arch-commits] Commit in dante/trunk (PKGBUILD sockd.install)

2014-08-18 Thread Sergej Pupykin
Date: Monday, August 18, 2014 @ 12:11:16
  Author: spupykin
Revision: 117510

upgpkg: dante 1.4.0-4

upd

Added:
  dante/trunk/sockd.install
Modified:
  dante/trunk/PKGBUILD

---+
 PKGBUILD  |3 ++-
 sockd.install |7 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-08-18 09:22:19 UTC (rev 117509)
+++ PKGBUILD2014-08-18 10:11:16 UTC (rev 117510)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.4.0
-pkgrel=3
+pkgrel=4
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -12,6 +12,7 @@
 depends=('pam' 'krb5')
 backup=('etc/socks.conf'
'etc/sockd.conf')
+install=sockd.install
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
sockd.tmpfiles.d
sockd.service)

Added: sockd.install
===
--- sockd.install   (rev 0)
+++ sockd.install   2014-08-18 10:11:16 UTC (rev 117510)
@@ -0,0 +1,7 @@
+post_install() {
+   systemd-tmpfiles --create sockd.conf
+}
+
+post_upgrade() {
+   systemd-tmpfiles --create sockd.conf
+}



[arch-commits] Commit in dante/trunk (PKGBUILD sockd.service)

2014-03-26 Thread Sergej Pupykin
Date: Wednesday, March 26, 2014 @ 16:54:15
  Author: spupykin
Revision: 108313

upgpkg: dante 1.4.0-3

upd

Modified:
  dante/trunk/PKGBUILD
  dante/trunk/sockd.service

---+
 PKGBUILD  |4 ++--
 sockd.service |1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-26 15:53:56 UTC (rev 108312)
+++ PKGBUILD2014-03-26 15:54:15 UTC (rev 108313)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.4.0
-pkgrel=2
+pkgrel=3
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -17,7 +17,7 @@
sockd.service)
 md5sums=('c117a3ce25afb936f13b76f1d2524879'
  '8588bb1cf6e9cde0f542a96edc0a0f17'
- '1cdfc0c1cd932cfe0fe3c0319e2be3f0')
+ 'f5520e3350de5d4d1baa05cf33678c06')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}

Modified: sockd.service
===
--- sockd.service   2014-03-26 15:53:56 UTC (rev 108312)
+++ sockd.service   2014-03-26 15:54:15 UTC (rev 108313)
@@ -4,7 +4,6 @@
 
 [Service]
 Type=forking
-EnvironmentFile=/etc/conf.d/sockd.conf
 PIDFile=/run/dante/sockd.pid
 ExecStart=/usr/bin/sockd -D -p/run/dante/sockd.pid
 



[arch-commits] Commit in dante/trunk (PKGBUILD sockd.service sockd.tmpfiles.d)

2014-03-24 Thread Sergej Pupykin
Date: Monday, March 24, 2014 @ 08:54:51
  Author: spupykin
Revision: 108158

upgpkg: dante 1.4.0-2

upd

Added:
  dante/trunk/sockd.tmpfiles.d
Modified:
  dante/trunk/PKGBUILD
  dante/trunk/sockd.service

--+
 PKGBUILD |   10 ++
 sockd.service|4 ++--
 sockd.tmpfiles.d |1 +
 3 files changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-24 07:46:34 UTC (rev 108157)
+++ PKGBUILD2014-03-24 07:54:51 UTC (rev 108158)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -13,9 +13,11 @@
 backup=('etc/socks.conf'
'etc/sockd.conf')
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
+   sockd.tmpfiles.d
sockd.service)
 md5sums=('c117a3ce25afb936f13b76f1d2524879'
- '9bb18a0165764092bd01da0ff6303fbf')
+ '8588bb1cf6e9cde0f542a96edc0a0f17'
+ '1cdfc0c1cd932cfe0fe3c0319e2be3f0')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
@@ -28,9 +30,9 @@
 package() {
   cd ${srcdir}/${pkgname}-${pkgver}
   make DESTDIR=${pkgdir} install
-  mkdir -p ${pkgdir}/etc/conf.d
+  install -dm0755 ${pkgdir}/etc
   cp example/{socks,sockd}.conf ${pkgdir}/etc
   install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-  echo 'SOCKD_OPTS="-D"' >${pkgdir}/etc/conf.d/sockd.conf
   install -Dm0644 $srcdir/sockd.service 
$pkgdir/usr/lib/systemd/system/sockd.service
+  install -Dm0644 $srcdir/sockd.tmpfiles.d 
$pkgdir/usr/lib/tmpfiles.d/sockd.conf
 }

Modified: sockd.service
===
--- sockd.service   2014-03-24 07:46:34 UTC (rev 108157)
+++ sockd.service   2014-03-24 07:54:51 UTC (rev 108158)
@@ -5,8 +5,8 @@
 [Service]
 Type=forking
 EnvironmentFile=/etc/conf.d/sockd.conf
-PIDFile=/run/sockd.pid
-ExecStart=/usr/bin/sockd $SOCKD_OPTS
+PIDFile=/run/dante/sockd.pid
+ExecStart=/usr/bin/sockd -D -p/run/dante/sockd.pid
 
 [Install]
 WantedBy=multi-user.target

Added: sockd.tmpfiles.d
===
--- sockd.tmpfiles.d(rev 0)
+++ sockd.tmpfiles.d2014-03-24 07:54:51 UTC (rev 108158)
@@ -0,0 +1 @@
+d /run/dante 0755 root root -



[arch-commits] Commit in dante/trunk (PKGBUILD)

2013-11-29 Thread Sergej Pupykin
Date: Friday, November 29, 2013 @ 16:57:58
  Author: spupykin
Revision: 101629

upgpkg: dante 1.4.0-1

upd

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-11-29 15:34:22 UTC (rev 101628)
+++ PKGBUILD2013-11-29 15:57:58 UTC (rev 101629)
@@ -3,8 +3,8 @@
 # Contributor: Guillem Rieu 
 
 pkgname=dante
-pkgver=1.3.2
-pkgrel=6
+pkgver=1.4.0
+pkgrel=1
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -14,7 +14,7 @@
'etc/sockd.conf')
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
sockd.service)
-md5sums=('250c6456cd3fefa17f07fa80c9ccf6bd'
+md5sums=('c117a3ce25afb936f13b76f1d2524879'
  '9bb18a0165764092bd01da0ff6303fbf')
 
 build() {



[arch-commits] Commit in dante/trunk (PKGBUILD)

2013-11-01 Thread Sergej Pupykin
Date: Friday, November 1, 2013 @ 21:22:29
  Author: spupykin
Revision: 100143

upgpkg: dante 1.3.2-6

upd

Modified:
  dante/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-11-01 20:22:25 UTC (rev 100142)
+++ PKGBUILD2013-11-01 20:22:29 UTC (rev 100143)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.3.2
-pkgrel=5
+pkgrel=6
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)



[arch-commits] Commit in dante/trunk (PKGBUILD sockd.service)

2013-05-28 Thread Sergej Pupykin
Date: Tuesday, May 28, 2013 @ 19:25:18
  Author: spupykin
Revision: 91849

upgpkg: dante 1.3.2-5

upd

Modified:
  dante/trunk/PKGBUILD
  dante/trunk/sockd.service

---+
 PKGBUILD  |5 +++--
 sockd.service |4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-28 17:25:14 UTC (rev 91848)
+++ PKGBUILD2013-05-28 17:25:18 UTC (rev 91849)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.3.2
-pkgrel=4
+pkgrel=5
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -16,11 +16,12 @@
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
sockd.service)
 md5sums=('250c6456cd3fefa17f07fa80c9ccf6bd'
- 'ceb86b5bd97f7e3ceff28c6e6172a25b')
+ '9bb18a0165764092bd01da0ff6303fbf')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/etc \
+   --sbindir=/usr/bin \
--disable-libwrap
   make
 }

Modified: sockd.service
===
--- sockd.service   2013-05-28 17:25:14 UTC (rev 91848)
+++ sockd.service   2013-05-28 17:25:18 UTC (rev 91849)
@@ -5,8 +5,8 @@
 [Service]
 Type=forking
 EnvironmentFile=/etc/conf.d/sockd.conf
-PIDFile=/var/run/sockd.pid
-ExecStart=/usr/sbin/sockd $SOCKD_OPTS
+PIDFile=/run/sockd.pid
+ExecStart=/usr/bin/sockd $SOCKD_OPTS
 
 [Install]
 WantedBy=multi-user.target



[arch-commits] Commit in dante/trunk (PKGBUILD sockd.rc)

2013-05-13 Thread Sergej Pupykin
Date: Monday, May 13, 2013 @ 16:18:30
  Author: spupykin
Revision: 90648

upgpkg: dante 1.3.2-4

upd

Modified:
  dante/trunk/PKGBUILD
Deleted:
  dante/trunk/sockd.rc

--+
 PKGBUILD |8 ---
 sockd.rc |   68 -
 2 files changed, 1 insertion(+), 75 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-13 14:18:25 UTC (rev 90647)
+++ PKGBUILD2013-05-13 14:18:30 UTC (rev 90648)
@@ -4,7 +4,7 @@
 
 pkgname=dante
 pkgver=1.3.2
-pkgrel=3
+pkgrel=4
 pkgdesc="SOCKS v4 and v5 compatible proxy server and client"
 url="http://www.inet.no/dante";
 arch=(i686 x86_64)
@@ -14,10 +14,8 @@
'etc/sockd.conf')
 options=('!libtool')
 source=(ftp://ftp.inet.no/pub/socks/${pkgname}-${pkgver}.tar.gz
-   sockd.rc
sockd.service)
 md5sums=('250c6456cd3fefa17f07fa80c9ccf6bd'
- '5110dfd78a2b38fff27a886ee88b58a6'
  'ceb86b5bd97f7e3ceff28c6e6172a25b')
 
 build() {
@@ -30,13 +28,9 @@
 package() {
   cd ${srcdir}/${pkgname}-${pkgver}
   make DESTDIR=${pkgdir} install
-  # Config files
   mkdir -p ${pkgdir}/etc/conf.d
   cp example/{socks,sockd}.conf ${pkgdir}/etc
-  # License
   install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-  # rc-script
-  install -D -m755 ${srcdir}/sockd.rc ${pkgdir}/etc/rc.d/sockd
   echo 'SOCKD_OPTS="-D"' >${pkgdir}/etc/conf.d/sockd.conf
   install -Dm0644 $srcdir/sockd.service 
$pkgdir/usr/lib/systemd/system/sockd.service
 }

Deleted: sockd.rc
===
--- sockd.rc2013-05-13 14:18:25 UTC (rev 90647)
+++ sockd.rc2013-05-13 14:18:30 UTC (rev 90648)
@@ -1,68 +0,0 @@
-#!/bin/bash
-
-daemon_name=sockd
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/sockd.conf
-
-get_pid() {
-   cat /var/run/sockd.pid 2>/dev/null
-}
-
-case "$1" in
-  start)
-stat_busy "Starting $daemon_name daemon"
-
-PID=$(get_pid)
-if [ -z "$PID" ]; then
-  [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
-  # RUN
-  $daemon_name $SOCKD_OPTS 1>/dev/null 2>/dev/null
-  #
-  if [ $? -gt 0 ]; then
-stat_fail
-exit 1
-  else
-echo $(get_pid) > /var/run/$daemon_name.pid
-add_daemon $daemon_name
-stat_done
-  fi
-else
-  stat_fail
-  exit 1
-fi
-;;
-
-  stop)
-stat_busy "Stopping $daemon_name daemon"
-PID=$(get_pid)
-# KILL
-[ ! -z "$PID" ] && kill $PID &> /dev/null
-#
-if [ $? -gt 0 ]; then
-  stat_fail
-  exit 1
-else
-  rm -f /var/run/$daemon_name.pid &> /dev/null
-  rm_daemon $daemon_name
-  stat_done
-fi
-;;
-
-  restart)
-$0 stop
-sleep 3
-$0 start
-;;
-
-  status)
-stat_busy "Checking $daemon_name status";
-ck_status $daemon_name
-;;
-
-  *)
-echo "usage: $0 {start|stop|restart|status}"
-esac
-
-exit 0