--- cereal-0.24.orig/debian/cereal.postinst +++ cereal-0.24/debian/cereal.postinst @@ -0,0 +1,36 @@ +#!/bin/sh -e + +# postinst script for cereal + +# Author: Jameson Graef 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 + +# apply some needed upgrades to existing sessions +for session in $(cereal list | cut -d ' ' -f 2) ; do + + # add the 'down' file to all stopped sessions + if cereal list "$session" | grep -q '^-' ; then + touch /var/lib/cereal/sessions/"$session"/down + fi + + # make sure all sessions have the finish script + # added for version 0.22 + ln -sf /usr/share/cereal/finish /var/lib/cereal/sessions/"$session"/finish + +done + +# 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.24.orig/debian/cereal.postrm +++ cereal-0.24/debian/cereal.postrm @@ -0,0 +1,22 @@ +#!/bin/sh -e + +# postrm script for cereal + +# Author: Jameson Graef 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.24.orig/debian/cereal.preinst +++ cereal-0.24/debian/cereal.preinst @@ -0,0 +1,32 @@ +#!/bin/sh -e + +# preinst script for cereal + +# Author: Jameson Graef 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.24.orig/debian/changelog +++ cereal-0.24/debian/changelog @@ -0,0 +1,295 @@ +cereal (0.24-1.1) unstable; urgency=medium + + * Non maintainer upload by the Reproducible Builds team. + * No source change upload to rebuild on buildd with .buildinfo files. + + -- Holger Levsen Thu, 07 Jan 2021 17:16:47 +0100 + +cereal (0.24-1) unstable; urgency=medium + + [ Jameson Graef Rollins ] + * new upstream packaging/build system. all-inclusive makefile, and + simplified debhelper rules. + * fixed some bashisms that were causing things to fail with dash/sh + (Closes: #511045). + + [ Daniel Kahn Gillmor ] + * bumped debian/compat to reflect the use of debhelper 7. + * changed maintainer address. + + -- Daniel Kahn Gillmor Fri, 09 Jan 2009 10:48:53 -0500 + +cereal (0.23-2) unstable; urgency=low + + * Update build depends standard version. + + -- Jameson Graef Rollins Mon, 27 Oct 2008 21:29:17 -0400 + +cereal (0.23-1) unstable; urgency=low + + * Fixed small bug that prevented attaching to sessions of unknown state. + + -- Jameson Graef Rollins Sun, 26 Oct 2008 13:43:47 -0400 + +cereal (0.22-1) unstable; urgency=low + + * New upstream release. + * properly check group ownership for symlinked ttys (Closes: #484979) + (thanks Marc Haber for patch). + * handle locking of the serial device using /usr/bin/lockfile from + procmail (adding a dependency) (Closes: #484980) + + -- Jameson Graef Rollins Mon, 09 Jun 2008 14:10:57 -0400 + +cereal (0.21-1) unstable; urgency=low + + * fix as many remaining bashisms in all scripts that we could + find. (Closes: #476755) + * moved to new method of registering sessions on creation. checks are + now done with sv status to determine the state of the session. this + makes things cleaner, and removes some state/registration ambiguities. + + -- Jameson Rollins Thu, 24 Apr 2008 17:59:23 -0400 + +cereal (0.20-1) unstable; urgency=low + + * removed all bashisms from all scripts (using checkbashism from + devscripts/unstable) (closing CMRG #43). + + -- Jameson Rollins Sun, 30 Mar 2008 00:47:38 -0400 + +cereal (0.19-1) unstable; urgency=low + + * fixes to the runit update-service script now allows for setting of + permissions of supervise directories at session creation, as well as + saving supervise directories across reboots (closes: CMRG #84) + * bumped runit version dependency up to 1.8.0-3, since changes in this + release depend on changes in that version (see #466885). + + -- Jameson Rollins Sun, 24 Feb 2008 17:53:13 -0500 + +cereal (0.18-1) unstable; urgency=low + + * use new runit command "update-service" (Closes: #466380) + * changed terminology of runit-controller sessions from "linked" to + "registered". + + -- Jameson Rollins Mon, 18 Feb 2008 14:25:28 -0500 + +cereal (0.17-1) unstable; urgency=low + + * New Upstream Release: + * Allows multiple concurrent connections (closes CMRG #7) + * Improved logging of connections (includes connecting pty info) + * debian/control: switched Section: back to utils from admin. + + -- Daniel Kahn Gillmor Wed, 16 Jan 2008 23:15:12 -0500 + +cereal (0.16-4) unstable; urgency=low + + * added Vcs-Svn and Vcs-Browser fields to debian/control + + -- Daniel Kahn Gillmor Sun, 13 Jan 2008 14:38:04 -0500 + +cereal (0.16-3) unstable; urgency=low + + * updated description so that cereal is relevant to "apt-cache search + serial console" + * bumped Standards-Version to 3.7.3 (no changes needed) + + -- Daniel Kahn Gillmor Fri, 11 Jan 2008 01:41:53 -0500 + +cereal (0.16-2) unstable; urgency=low + + * switched DM-Upload-Allowed to XS-DM-Upload-Allowed. + + -- Daniel Kahn Gillmor Tue, 27 Nov 2007 00:48:44 -0500 + +cereal (0.16-1) unstable; urgency=low + + * new upstream version + * found/fixed a couple lingering GPL v2 references + * removed bashisms from "make install" (Closes: #453040) + * add DM-Upload-Allowed: yes to debian/control. + + -- Daniel Kahn Gillmor Mon, 26 Nov 2007 19:57:48 -0500 + +cereal (0.15-2) unstable; urgency=low + + * update debian/control with Homepage field. + + -- Jameson Rollins Wed, 21 Nov 2007 14:05:40 -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 + --- cereal-0.24.orig/debian/compat +++ cereal-0.24/debian/compat @@ -0,0 +1 @@ +7 --- cereal-0.24.orig/debian/control +++ cereal-0.24/debian/control @@ -0,0 +1,27 @@ +Source: cereal +Section: utils +Priority: extra +Maintainer: Daniel Kahn Gillmor +Uploaders: Jameson Graef Rollins +Build-Depends: debhelper (>= 7.0) +Standards-Version: 3.8.0.1 +Homepage: http://cmrg.fifthhorseman.net/wiki/cereal +Vcs-Svn: http://cmrg.fifthhorseman.net/svn/trunk/cereal +Vcs-Browser: http://cmrg.fifthhorseman.net/browser/trunk/cereal +Dm-Upload-Allowed: yes + +Package: cereal +Architecture: all +Depends: runit (>= 1.8.0-3), screen, adduser, procmail +Description: automated, logged serial terminal management system + cereal provides a framework to easily set up and maintain automated, + timestamped logs of serial lines, while simultaneously allowing end + user access to them. This is probably most useful for providing + automated, logged access to remote serial consoles. + . + cereal can control an arbitrary number of independently monitored and + logged lines. 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. --- cereal-0.24.orig/debian/copyright +++ cereal-0.24/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 Graef 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.24.orig/debian/dirs +++ cereal-0.24/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.24.orig/debian/docs +++ cereal-0.24/debian/docs @@ -0,0 +1,4 @@ +doc/example-cereal-setup.txt +doc/log-limits.txt +doc/cereal-intro.html +doc/style.howtos.css --- cereal-0.24.orig/debian/rules +++ cereal-0.24/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@