--- sleepenh-1.3.orig/debian/rules +++ sleepenh-1.3/debian/rules @@ -0,0 +1,90 @@ +#!/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 + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/sleepenh.sgml > sleepenh.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/sleepenh. + $(MAKE) DESTDIR=$(CURDIR)/debian/sleepenh install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- sleepenh-1.3.orig/debian/changelog +++ sleepenh-1.3/debian/changelog @@ -0,0 +1,40 @@ +sleepenh (1.3-1) unstable; urgency=low + + * New upstream release, nothing important has changed, only FSF address + in copyright, a gcc warnings have been removed and manpage warnings were + removed. + + -- Pedro Zorzenon Neto Sun, 20 Apr 2008 19:23:51 -0300 + +sleepenh (1.2-3) unstable; urgency=low + + * fixed typos in manpage, thanks to A. Costa. closes: #422939 + * decided not to add a symlink to usleep, as asked in bug 223455. The gnu + 'sleep' command (provided by package coreutils) accepts floating numbers + as arguments and can be used for doing it. closes: #223455 + * updated debian/rules, dh_compat, FSF address in copyright and other + small things. + + -- Pedro Zorzenon Neto Sun, 20 Apr 2008 18:18:18 -0300 + +sleepenh (1.2-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Get rid of the /usr/doc link in postinst (Closes: #359595). + + -- Amaya Rodrigo Sastre Tue, 18 Jul 2006 00:58:28 +0200 + +sleepenh (1.2-2) unstable; urgency=low + + * Changing package short and long description. + See bug #182331 for more details. Thanks to Ludovic Rousseau. + + -- Pedro Zorzenon Neto Mon, 10 Mar 2003 23:15:22 -0300 + +sleepenh (1.2-1) unstable; urgency=low + + * Initial Release. + + * First upload, closing ITP (Closes: #182331) + + -- Pedro Zorzenon Neto Thu, 6 Mar 2003 07:38:07 -0300 --- sleepenh-1.3.orig/debian/control +++ sleepenh-1.3/debian/control @@ -0,0 +1,33 @@ +Source: sleepenh +Section: utils +Priority: extra +Maintainer: Pedro Zorzenon Neto +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.3 + +Package: sleepenh +Architecture: any +Depends: ${shlibs:Depends} +Description: Sleep until a given date with subsecond resolution + sleepenh is an sleep program for using in shell scripts + that need to perform a loop that repeats at a regular + time interval, without cumulative errors. + . + It supports microsecond resolution. + . + You can also specify the time you need between two calls + of sleepenh. + . + Here follows an usage example to clarify its purpose. This + example sends 'A' to ttyS0 every 1.2 seconds. + #!/bin/sh + # does not wait (or wait 0), just to get initial timestamp + TIMESTAMP=`sleepenh 0` + while true; do + # send the byte to ttyS0 + echo -n "A" > /dev/ttyS0; + # wait until the required time + TIMESTAMP=`sleepenh $TIMESTAMP 1.200`; + done + . + For more details, please read the manpage. --- sleepenh-1.3.orig/debian/dirs +++ sleepenh-1.3/debian/dirs @@ -0,0 +1 @@ +usr/bin --- sleepenh-1.3.orig/debian/postinst +++ sleepenh-1.3/debian/postinst @@ -0,0 +1,50 @@ +#! /bin/sh +# postinst script for sleepenh +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if [ -d /usr/doc -a -h /usr/doc/sleepenh -a -d /usr/share/doc/sleepenh ]; then + rm -f /usr/doc/sleepenh + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- sleepenh-1.3.orig/debian/copyright +++ sleepenh-1.3/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Pedro Zorzenon Neto on +Mon, 24 Feb 2003 14:34:37 -0300. + +It was downloaded from http://vztech.com.br/public/utils/sleepenh/ + +Copyright: + +/* + * sleepenh.c - enhanced sleep command + * + * Copyright (C) 2003 - Pedro Zorzenon Neto + * + * This program 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 program 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 program; 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. --- sleepenh-1.3.orig/debian/compat +++ sleepenh-1.3/debian/compat @@ -0,0 +1 @@ +5