make rs into a Debian package for mikap
authortg <tg@mirbsd.org>
Sat, 30 Oct 2010 14:35:41 +0000 (14:35 +0000)
committertg <tg@mirbsd.org>
Sat, 30 Oct 2010 14:35:41 +0000 (14:35 +0000)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/install [new file with mode: 0644]
debian/manpages [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..65aa9f3
--- /dev/null
@@ -0,0 +1,7 @@
+rs (20101029-0wtf1) experimental; urgency=low
+
+  * Initial package. Since NEW is currently not processed, this is
+    uploaded to the Grml repository for now, tested there and, once
+    unfrozen, will be uploaded to Debian in a new version.
+
+ -- Thorsten Glaser <tg@mirbsd.de>  Sat, 30 Oct 2010 14:29:20 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..5cb13e3
--- /dev/null
@@ -0,0 +1,25 @@
+# $MirOS: contrib/hosted/tg/deb/rs/debian/control,v 1.1 2010/10/30 14:35:39 tg Exp $
+#
+Source: rs
+Section: utils
+Priority: optional
+Maintainer: Thorsten Glaser <tg@mirbsd.de>
+# possibly works with older libbsd-dev, but haven’t tested how old
+Build-Depends: debhelper (>= 5), libbsd-dev (>= 0.2.0-1~)
+Standards-Version: 3.9.1
+# First word is the $CVSROOT (-d arg) string, second word the module.
+# Upstream is on the same server, in the "src/usr.bin/rs" module.
+Vcs-CVS: :ext:_anoncvs@anoncvs.mirbsd.org:/cvs contrib/hosted/tg/deb/rs
+Vcs-Browser: http://cvs.mirbsd.de/contrib/hosted/tg/deb/rs/
+
+Package: rs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: reshape a data array
+ rs reads the standard input, interpreting each line as a row of
+ blank-separated entries in an array, transforms the array
+ according to the options, and writes it on the standard output.
+ Numerous options control input, reshaping and output processing;
+ the simplest usage example is "ls -1 | rs", which outputs the
+ same (on an 80-column terminal) as the modern "ls" with no "-1"
+ argument.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..588c66a
--- /dev/null
@@ -0,0 +1,41 @@
+This package was debianised by Thorsten Glaser <tg@mirbsd.de> on
+Sat Oct 30 14:32:34 UTC 2010.
+
+$MirOS: contrib/hosted/tg/deb/rs/debian/copyright,v 1.1 2010/10/30 14:35:40 tg Exp $
+
+It was downloaded from:
+https://www.mirbsd.org/MirOS/dist/mir/rs/rs-20101029.tar.gz
+
+
+Author: John Kunze, Office of Comp. Affairs, UCB
+
+Licence:
+
+/*-
+ * Copyright (c) 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
diff --git a/debian/install b/debian/install
new file mode 100644 (file)
index 0000000..c6a112a
--- /dev/null
@@ -0,0 +1,3 @@
+# $MirOS: contrib/hosted/tg/deb/rs/debian/install,v 1.1 2010/10/30 14:35:40 tg Exp $
+#-
+rs usr/bin/
diff --git a/debian/manpages b/debian/manpages
new file mode 100644 (file)
index 0000000..6f99d7d
--- /dev/null
@@ -0,0 +1,3 @@
+# $MirOS: contrib/hosted/tg/deb/rs/debian/manpages,v 1.1 2010/10/30 14:35:40 tg Exp $
+#-
+rs.1
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..b7eedee
--- /dev/null
@@ -0,0 +1,76 @@
+#!/usr/bin/make -f
+# $MirOS: contrib/hosted/tg/deb/rs/debian/rules,v 1.1 2010/10/30 14:35:40 tg Exp $
+#-
+# -*- 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.
+
+CC ?= gcc
+CFLAGS = -Wall -Wextra -g
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+
+CFLAGS+=       -DUSE_LIBBSD
+LIBS+=         -lbsd
+
+build: rs
+
+rs:
+       dh_testdir
+       ${CC} ${CFLAGS} -o rs rs.c ${LIBS}
+
+clean:
+       dh_testdir
+       -rm -f rs
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+# 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_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+#      dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_python
+#      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 check
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..d3827e7
--- /dev/null
@@ -0,0 +1 @@
+1.0
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..cab1d2e
--- /dev/null
@@ -0,0 +1,4 @@
+# $MirOS: contrib/hosted/tg/deb/rs/debian/watch,v 1.1 2010/10/30 14:35:40 tg Exp $
+
+version=3
+http://www.mirbsd.org/MirOS/dist/mir/rs/ rs-(.*)\.tar\.gz