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

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 14:20:29 UTC 2013


    Date: Monday, May 13, 2013 @ 16:20:29
  Author: spupykin
Revision: 90654

upgpkg: dictd 1.12.1-2

upd

Modified:
  dictd/trunk/PKGBUILD
Deleted:
  dictd/trunk/dictd

----------+
 PKGBUILD |    5 ---
 dictd    |   92 -------------------------------------------------------------
 2 files changed, 1 insertion(+), 96 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:20:23 UTC (rev 90653)
+++ PKGBUILD	2013-05-13 14:20:29 UTC (rev 90654)
@@ -5,7 +5,7 @@
 
 pkgname=dictd
 pkgver=1.12.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Online dictionary client and server"
 url="http://sourceforge.net/projects/dict/"
 license=('GPL')
@@ -20,7 +20,6 @@
 	etc/dict/colorit.conf)
 options=('!emptydirs')
 source=("http://downloads.sourceforge.net/dict/$pkgname-$pkgver.tar.gz"
-	dictd
 	dict.conf
 	dictd.conf
 	dictd.confd
@@ -29,7 +28,6 @@
 	dictd.xinetd
 	colorit.conf)
 md5sums=('62696491174c22079f664830d07c0623'
-         '6542df4fc585773fc03f1a088730126b'
          'fb72f7d8c55f84b1b37bbc8d33a8e55a'
          '64cd6ffdb40fb3367224f91ac44926ac'
          '838887fee38ae4cebd652d399b1f2266'
@@ -47,7 +45,6 @@
 package() {
   cd $srcdir/$pkgname-$pkgver
   make DESTDIR=$pkgdir install
-  install -D -m 0755 $srcdir/dictd $pkgdir/etc/rc.d/dictd
   install -D -m 0644 $srcdir/dictd.xinetd $pkgdir/etc/xinetd.d/dictd
   install -D -m 0644 $srcdir/dictd.conf $pkgdir/etc/dict/dictd.conf
   install -D -m 0644 $srcdir/dict.conf $pkgdir/etc/dict/dict.conf

Deleted: dictd
===================================================================
--- dictd	2013-05-13 14:20:23 UTC (rev 90653)
+++ dictd	2013-05-13 14:20:29 UTC (rev 90654)
@@ -1,92 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/dictd
-. /etc/rc.conf
-
-. /etc/rc.d/functions
-
-preconfiguration() {
-	stat_busy "Check dictd configuration"
-	if [ ! -e ${DICTD_CONF} ];  then
-		echo "No configuration"
-		stat_fail 
-		exit 1
-	fi
-	stat_done
-
-	# The new way of doing this is to scan /usr/lib/dict and tweek the conf
-	stat_busy "Scanning for dictionaries..."
-	if [ ! -d "${DICTD_DICTDIR}" ]; then
- 		echo "No dictionaries found"
-		stat_fail
-		exit 1
-	fi
-	stat_done
-	pushd ${DICTD_DICTDIR} >/dev/null
-	INDEXFILES=`ls *.index`
-	if [ -z "$INDEXFILES" ]; then
- 		echo "No dictionaries found"
-		stat_fail 
-		exit 1
-	fi
-
-	cat $DICTD_CONF | sed -e '/^#LASTLINE/,$d' > $DICTD_TMPCONF
-	echo "#LASTLINE" >> $DICTD_TMPCONF
-
-	CNT=0
-	for i in $INDEXFILES
-	do
-		DNAME=`echo $i | awk -F . '{print $1;}'`
-		#two possible names for a matching dictionary, check which is there.
-		if [ -f ${DNAME}.dict.dz ]; then
-			DICT=${DNAME}.dict.dz
-		elif [ -f ${DNAME}.dict ];then
-			DICT=${DNAME}.dict
-		else
-			echo "Index $i has no matching dictionaray..."
-		fi
-
-		#ok, go an index, and a dixtionary, append.
-		echo "database $DNAME { data \"${DICTD_DICTDIR}/${DICT}\"" >> $DICTD_TMPCONF
-		echo "         index \"${DICTD_DICTDIR}/$i\" }" >> $DICTD_TMPCONF
-
-		CNT=`expr $CNT + 1`
-	done
-	popd >/dev/null
-	mv ${DICTD_TMPCONF} ${DICTD_CONF}
-	echo "$CNT dictionary indexes found."
-}
-
-PID=`pidof -o %PPID /usr/sbin/dictd`
-
-case "$1" in 
-  start)
-  	preconfiguration || exit 1
-	stat_busy "Start dictd daemon"
-	/usr/sbin/dictd $DICTD_ARGS -- $DICTD_EARGS
-	if [  $? -gt 0 ]; then
-	      stat_fail
-	else
-	      add_daemon dictd
-  	      stat_done
-    	fi
-    ;;
-
-   stop)
-	stat_busy "Stop dictd daemon"
-	kill $PID 2>/dev/null 1>/dev/null
-	if [ $? -gt 0 ]; then
-	    stat_fail
-	else
-	    rm_daemon dictd
-	    stat_done
-	fi
-	;;
-  restart)
-	 $0 stop
-	sleep 1
-	$0 start
-	;;
-  *)
-	echo "usage: $0 {start|stop|restart}"
-esac




More information about the arch-commits mailing list