--- cereal-0.15.orig/debian/patches/Makefile.diff +++ cereal-0.15/debian/patches/Makefile.diff @@ -0,0 +1,18 @@ +Index: cereal-0.15/Makefile +=================================================================== +--- cereal-0.15.orig/Makefile 2007-11-26 15:37:06.000000000 -0500 ++++ cereal-0.15/Makefile 2007-11-26 15:38:01.000000000 -0500 +@@ -21,9 +21,11 @@ + install fs/usr/sbin/cereal-admin $(PREFIX)/sbin/cereal-admin + install -m 0644 fs/usr/share/man/man1/cereal.1 $(PREFIX)/share/man/man1/cereal.1 + install -m 0644 fs/usr/share/man/man8/cereal-admin.8 $(PREFIX)/share/man/man8/cereal-admin.8 +- install fs/usr/share/cereal/{log,main}run $(PREFIX)/share/cereal/ ++ install fs/usr/share/cereal/logrun $(PREFIX)/share/cereal/ ++ install fs/usr/share/cereal/mainrun $(PREFIX)/share/cereal/ + install -m 0644 fs/usr/share/cereal/common $(PREFIX)/share/cereal/ +- install -m 0644 fs/etc/cereal/{cereal-admin.conf,screenrc} $(CONFIGDIR)/cereal/ ++ install -m 0644 fs/etc/cereal/screenrc $(CONFIGDIR)/cereal/ ++ install -m 0644 fs/etc/cereal/cereal-admin.conf $(CONFIGDIR)/cereal/ + + # invoke this target like `make VERSION=0.1 release' to build an + # "upstream tarball". --- cereal-0.15.orig/debian/patches/series +++ cereal-0.15/debian/patches/series @@ -0,0 +1 @@ +Makefile.diff --- cereal-0.15.orig/debian/copyright +++ cereal-0.15/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by Daniel Kahn Gillmor + on Thu, 15 Mar 2007 01:12:29 -0400. + +It was downloaded from http://cmrg.fifthhorseman.net/wiki/cereal + +Upstream Authors: Jameson Rollins and + Daniel Kahn Gillmor + +Copyright: 2007 Daniel Kahn Gillmor and Jameson Rollins + +License: cereal is distributed under the GNU GPL v3 or later + (see /usr/share/common-licenses/GPL) --- cereal-0.15.orig/debian/docs +++ cereal-0.15/debian/docs @@ -0,0 +1,4 @@ +docs/example-cereal-setup.txt +docs/log-limits.txt +docs/cereal-intro.html +docs/style.howtos.css --- cereal-0.15.orig/debian/control +++ cereal-0.15/debian/control @@ -0,0 +1,25 @@ +Source: cereal +Section: utils +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Daniel Kahn Gillmor +Uploaders: Jameson Rollins +Build-Depends: debhelper (>= 5.0), quilt +Standards-Version: 3.7.2.2 + +Package: cereal +Architecture: all +Depends: runit, screen, adduser +Description: automated, logged serial terminal management system + cereal provides an easy way to set up and maintain automated, + timestamped logs of serial lines, while simultaneously allowing end users + to access them. cereal can control an arbitrary number of logged lines, + and each will be independently monitored. + . + Direct access to the monitored lines is allowed only to a specific + user (who doesn't necessarily otherwise have access to the direct + serial line), but logs can be made available to any group. Logs + are rotated automatically and their total space can be limited in + size. + . + Homepage: http://cmrg.fifthhorseman.net/wiki/cereal --- cereal-0.15.orig/debian/cereal.prerm +++ cereal-0.15/debian/cereal.prerm @@ -0,0 +1,14 @@ +#!/bin/sh -e + +# prerm script for cereal + +# Author: Jamie Rollins and +# Daniel Kahn Gillmor +# (c) 2007 + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- cereal-0.15.orig/debian/compat +++ cereal-0.15/debian/compat @@ -0,0 +1 @@ +5 --- cereal-0.15.orig/debian/cereal.preinst +++ cereal-0.15/debian/cereal.preinst @@ -0,0 +1,32 @@ +#!/bin/sh -e + +# preinst script for cereal + +# Author: Jamie Rollins and +# Daniel Kahn Gillmor +# (c) 2007 + +# make new sessions dir and move all old sessions into it +if [ -d /var/lib/cereal/ -a ! -d /var/lib/cereal/sessions ] ; then + echo "moving sessions to new session directory /var/lib/cereal/sessions/..." + + # find all active sessions + SESSIONS=$(cereal list | cut -d ' ' -f 2) + + mkdir -p /var/lib/cereal/sessions + + for SESSION in $SESSIONS ; do + echo "moving '$SESSION'..." + mv /var/lib/cereal/"$SESSION" /var/lib/cereal/sessions/"$SESSION" + if [ -L "/var/service/cereal.$SESSION" ] ; then + ln -sfn "/var/lib/cereal/sessions/$SESSION" "/var/service/cereal.$SESSION" + fi + done +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- cereal-0.15.orig/debian/cereal.postinst +++ cereal-0.15/debian/cereal.postinst @@ -0,0 +1,22 @@ +#!/bin/sh -e + +# postinst script for cereal + +# Author: Jamie Rollins and +# Daniel Kahn Gillmor +# (c) 2007 + +if ! getent passwd cereal >/dev/null ; then + echo "adding cereal user..." + adduser --quiet --system --no-create-home --home '/var/lib/cereal' --shell '/bin/false' --gecos 'cereal logfile owner,,,' cereal +fi + +# restart all running sessions +cereal-admin restart --running + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- cereal-0.15.orig/debian/rules +++ cereal-0.15/debian/rules @@ -0,0 +1,46 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# cereal makefile for debian packaging +# +# (C) 2007 by Daniel Kahn Gillmor +# +# This file is released under the GPL, v2 or later +# (see /usr/share/common-licenses/GPL) + +include /usr/share/quilt/quilt.make + +# not much to do here, since we're just moving some shell scripts +# around. + +build: + +binary: binary-arch binary-indep + +binary-arch: build + +install: patch + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install PREFIX=$(CURDIR)/debian/cereal/usr CONFIGDIR=$(CURDIR)/debian/cereal/etc + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +clean: unpatch + dh_testdir + dh_testroot + dh_clean --- cereal-0.15.orig/debian/dirs +++ cereal-0.15/debian/dirs @@ -0,0 +1,10 @@ +var/lib/cereal +var/lib/cereal/sessions +usr/bin +usr/sbin +usr/share +usr/share/cereal +usr/share/man +usr/share/man/man8 +usr/share/man/man1 +etc/cereal --- cereal-0.15.orig/debian/cereal.postrm +++ cereal-0.15/debian/cereal.postrm @@ -0,0 +1,22 @@ +#!/bin/sh -e + +# postrm script for cereal + +# Author: Jamie Rollins and +# Daniel Kahn Gillmor +# (c) 2007 + +case $1 in + purge) + rmdir --ignore-fail-on-non-empty /var/lib/cereal || true + echo "removing cereal user..." + userdel cereal > /dev/null || true + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- cereal-0.15.orig/debian/changelog +++ cereal-0.15/debian/changelog @@ -0,0 +1,185 @@ +cereal (0.15-1ubuntu1) hardy; urgency=low + + * Add Makefile.diff patch: + - Fix bashism in Makefile causing FTBFS (LP: #165269) + * Implement quilt patch system: + - Add quilt as a Build-Depends in debian/control + - Add quilt support in debian/rules + * debian/control: Update maintainer fields according to debian- + maintainer-field spec. + + -- Nicolas Valcárcel Scerpella (aka nxvl) Mon, 26 Nov 2007 16:11:03 -0500 + +cereal (0.15-1) unstable; urgency=low + + * change call to sh to be call to bash in cereal-admin start (fix ticket #36) + * fix is_controllable function to be more accurate + + -- Jameson Rollins Wed, 24 Oct 2007 15:47:49 -0400 + +cereal (0.14-2) unstable; urgency=low + + * fix to cereal.preinst script to properly upgrade from older versions + + -- Jameson Rollins Mon, 15 Oct 2007 12:03:59 -0400 + +cereal (0.14-1) unstable; urgency=low + + * overhaul/simplification of listing function + * overhaul/simplification of error reporting + * added log-limiting documentation and mention in cereal-admin man page + + -- Jameson Rollins Fri, 12 Oct 2007 01:35:47 -0400 + +cereal (0.13-3) unstable; urgency=low + + * added var/lib/cereal/sessions to debian/dirs to fix ticket #33 + + -- Jameson Rollins Thu, 11 Oct 2007 20:55:20 -0400 + +cereal (0.13-2) unstable; urgency=low + + * added gecos field for cereal user + + -- Jameson Rollins Wed, 10 Oct 2007 18:27:42 -0400 + +cereal (0.13-1) unstable; urgency=low + + * update of is_running function with better tests/return + * moved session directory to /var/lib/cereal/sessions + + -- Jameson Rollins Tue, 09 Oct 2007 22:35:52 -0400 + +cereal (0.12-1) unstable; urgency=high + + * fixed bug where bin/cereal had not been updated with new function to check + whether session was linked, causing bin/cereal to not allow session + connection. + + -- Jameson Rollins Mon, 03 Sep 2007 13:12:47 -0400 + +cereal (0.11-1) unstable; urgency=low + + * scripts now use bash instead of sh because we haven't audited for + POSIX-compliance. + * cleaned up licensing so all files now refer to GPL v3 or later instead + of v2. + + -- Daniel Kahn Gillmor Sun, 02 Sep 2007 15:38:42 -0400 + +cereal (0.10-1) unstable; urgency=low + + * added new SFLAG ('!') for linked running sessions, at least for users that + can read the supervise/stat file (closes ticket #30). man fixed as well. + * added new /etc/cereal/cereal-admin.conf to control whether or not to make + the supervise directory world accessible or not. + * relicense to GPLv3 + + -- Jameson Rollins Sun, 02 Sep 2007 15:01:03 -0400 + +cereal (0.9-1) unstable; urgency=low + + * changed possible return value for "restart --running" per dkg's request + + -- Jameson Rollins Wed, 16 May 2007 12:28:14 -0400 + +cereal (0.8-2) unstable; urgency=low + + * fixed postinst script to not fail if there are no sessions running. + + -- Jameson Rollins Wed, 16 May 2007 09:59:07 -0400 + +cereal (0.8-1) unstable; urgency=low + + * renamed many of the sub-command (enable->start, disable->stop, + remove->destroy). + * added new "restart" subcommand. + * changed postinst script to restart enabled sessions. + + -- Jameson Rollins Tue, 15 May 2007 01:18:11 -0400 + +cereal (0.7-1) unstable; urgency=low + + * attempt to fix (patch?) bug during cereal-admin enable (ticket #24) + + -- Jameson Rollins Fri, 11 May 2007 01:44:34 -0400 + +cereal (0.6-1) unstable; urgency=low + + * fixing bugs: the second cereal console creation was failing. + * limited more features in screen, updated man page to match + + -- Daniel Kahn Gillmor Thu, 10 May 2007 21:58:11 -0400 + +cereal (0.5-1) unstable; urgency=low + + * added log_write function + * update default screenrc + + -- Jameson Rollins Thu, 19 Apr 2007 14:00:47 -0400 + +cereal (0.4-1) unstable; urgency=low + + * added restrictions that prevent opening new windows or executing external + commands in attached screen sessions + * improved look/feel of cereal screen session + * expanded default screenrc + * added more documentation + * improved cereal follow command, added output options + * added options to enable/disable/remove all sessions with cereal-admin + * more cereal output to log files (maybe even more would be better) + + -- Jameson Rollins Sun, 1 Apr 2007 16:37:59 -0400 + +cereal (0.3-3) unstable; urgency=low + + * added debian/dirs to make sure all the directories are properly + created initially. + + -- Daniel Kahn Gillmor Fri, 30 Mar 2007 02:03:22 -0400 + +cereal (0.3-2) unstable; urgency=low + + * added adduser as a dependency for postinst script. + * added #DEBHELPER# tags in post{inst,rm} scripts. + (thanks to lintian for catching these!) + * switched postrm from deluser to userdel (see + http://lists.debian.org/debian-release/2007/01/msg01014.html) + + -- Daniel Kahn Gillmor Fri, 30 Mar 2007 00:53:53 -0400 + +cereal (0.3-1) unstable; urgency=low + + * New upstream version + * fixed broken path to common file. + * GROUP and LOGUSER now determined by cereal-admin (new 'cereal' system user) + * updated all functions to reflect new GROUP/LOGUSER specifications + * added flags in session display, tweaked display + * added subcommands to cereal script, including primitive log reader + * code clean-up/simplification + * added post{inst,rm} scripts (add/del cereal user) + * added check against tty already being monitored by different session + + -- Jameson Rollins Wed, 28 Mar 2007 01:19:52 -0400 + +cereal (0.2-2) unstable; urgency=low + + * fixed debian/control to build for *all* archs, instead of "any" + * add jrollins to "Uploaders" in debian/control + + -- Jameson Rollins Sat, 24 Mar 2007 17:17:29 -0400 + +cereal (0.2-1) unstable; urgency=low + + * New upstream version + * added copyright and licensing information to all files. + * reorganized build scripts, using upstream makefile for installation. + + -- Daniel Kahn Gillmor Sat, 24 Mar 2007 14:15:53 -0400 + +cereal (0.1-1) unstable; urgency=low + + * initial version of debian package. + + -- Jameson Rollins Sat, 17 Mar 2007 15:41:56 -0400 +