--- dict-stardic-1.3.1.orig/debian/control +++ dict-stardic-1.3.1/debian/control @@ -0,0 +1,19 @@ +Source: dict-stardic +Section: text +Priority: optional +Maintainer: Emfox Zhou +Build-Depends: debhelper (>= 4.0.0) +Build-Depends-Indep: python, dictfmt, dictzip +Standards-Version: 3.7.3 + +Package: dict-stardic +Architecture: all +Depends: dictd|dict-server +Provides: dictd-dictionary +Description: An English to Chinese Dictionary + This package contains the Stardic, the Free English to Chinese + Dictionary, which originally developed by Ma Su An, formatted + for use by the dictionary server in the dictd package. + . + This package will be of limited use without the server found + in the dictd package. --- dict-stardic-1.3.1.orig/debian/rules +++ dict-stardic-1.3.1/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp + +build-stamp: + dh_testdir + + ./convert.sh + cat stardic | /usr/bin/dictfmt -t -s "Stardic English-Chinese Dictionary" stardic + /usr/bin/dictzip -v stardic.dict + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + rm -f stardic* + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -d $(CURDIR)/debian/dict-stardic/usr/share/dictd + install -m 644 stardic.* debian/dict-stardic/usr/share/dictd + + +binary-arch: build install +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs README + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- dict-stardic-1.3.1.orig/debian/changelog +++ dict-stardic-1.3.1/debian/changelog @@ -0,0 +1,25 @@ +dict-stardic (1.3.1-4) unstable; urgency=low + + * to use invoke-rc.d instead of init.d. (Closes: #523770) + + -- Emfox Zhou Mon, 13 Apr 2009 08:01:02 +0800 + +dict-stardic (1.3.1-3) unstable; urgency=low + + * Provide virtual package 'dictd-dictionary'. (Closes: #466218) + * Update Policy to 3.7.3, no changes. + + -- Emfox Zhou Sun, 13 Apr 2008 09:42:50 +0800 + +dict-stardic (1.3.1-2) unstable; urgency=low + + * Update maintainer's email. + + -- Emfox Zhou Sun, 21 Jan 2007 14:48:11 +0000 + +dict-stardic (1.3.1-1) unstable; urgency=low + + * Initial release + + -- Emfox Zhou Sun, 21 Jan 2007 13:58:54 +0000 + --- dict-stardic-1.3.1.orig/debian/postinst +++ dict-stardic-1.3.1/debian/postinst @@ -0,0 +1,31 @@ +#! /bin/sh + +set -e + +PACKAGE=dict-stardic + +case "$1" in + configure) + if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi + + # if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart; fi + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d dictd restart + else + /etc/init.d/dictd restart + fi + + exit 0 + ;; + + failed-upgrade|abort-upgrade|abort-remove|abort-deconfigure|in-favour|removing) + exit 0; + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2; + exit 0; + ;; +esac + +#DEBHELPER# --- dict-stardic-1.3.1.orig/debian/compat +++ dict-stardic-1.3.1/debian/compat @@ -0,0 +1 @@ +4 --- dict-stardic-1.3.1.orig/debian/postrm +++ dict-stardic-1.3.1/debian/postrm @@ -0,0 +1,28 @@ +#! /bin/sh + +set -e + +case "$1" in + remove|purge) + if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi + + # if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart; fi + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d dictd restart + else + /etc/init.d/dictd restart + fi + exit 0 + ;; + + upgrade|abort-upgrade|abort-remove|abort-deconfigure|in-favour|removing) + exit 0; + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2; + exit 0; + ;; +esac + +#DEBHELPER# --- dict-stardic-1.3.1.orig/debian/copyright +++ dict-stardic-1.3.1/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Emfox Zhou on +Sun, 11 Dec 2005 02:41:24 +0800. + +Copyright (C) 1998 Ma Su An + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. +