--- oss-preserve-1.1.orig/debian/changelog +++ oss-preserve-1.1/debian/changelog @@ -0,0 +1,105 @@ +oss-preserve (1.1-6ubuntu3) bionic; urgency=high + + * No change rebuild to pick up -fPIE compiler default + + -- Balint Reczey Tue, 03 Apr 2018 12:38:07 +0000 + +oss-preserve (1.1-6ubuntu2) oneiric; urgency=low + + * Fix applying the ld-as-needed patch. + + -- Matthias Klose Wed, 14 Sep 2011 11:49:06 +0200 + +oss-preserve (1.1-6ubuntu1) oneiric; urgency=low + + * Fix FTBFS with ld --as-needed. LP: #771105. + + -- Matthias Klose Wed, 14 Sep 2011 10:54:26 +0200 + +oss-preserve (1.1-6) unstable; urgency=low + + * Update glib depends to libglib2.0 (Closes: #523710) + * Add patches/glib.diff to fix build with glib-2.0 + * Bump Standards-Version to 3.8.1 + * Fix lintian warnings in copyright file + + -- Varun Hiremath Fri, 17 Apr 2009 10:23:56 -0400 + +oss-preserve (1.1-5) unstable; urgency=low + + [ Varun Hiremath ] + * Switch to CDBS. + * Externalise all patches and use quilt for patching + * Fix init.d script: add LSB headers (Closes: #469749) + + [ Torsten Werner ] + * Remove no longer or never needed install/remove scripts. + * Add a status action to the init script. + + -- Torsten Werner Sat, 08 Mar 2008 09:18:23 +0100 + +oss-preserve (1.1-4) unstable; urgency=low + + [ Varun Hiremath ] + * New Maintainer (Closes: #348469) + * Upgrade to debhelper version 5 + * Add myself to debian/copyright + + [ Torsten Werner ] + * add myself to Uploaders in debian/control + + -- Torsten Werner Tue, 5 Sep 2006 20:26:43 +0200 + +oss-preserve (1.1-3) unstable; urgency=low + + * Ack NMU. (closes: Bug#322206, Bug#359539, Bug#367726) + * Change dependency "libglib-dev" to "libglib1.2-dev". + * Bump standards-version. + * Update to debhelper v4. + * Use /var/lib rather than /var/state. + + -- Chris Hanson Tue, 15 Aug 2006 01:12:59 -0400 + +oss-preserve (1.1-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Get rid of the /usr/doc link in postinst (Closes: #359539). + * This bug does not apply (Closes: #367726). + * Applied patch by Robert Millan , so that it doesn't + FTBFS on GNU/kFreeBSD (Closes: #322206). + + -- Amaya Rodrigo Sastre Mon, 17 Jul 2006 17:21:26 +0200 + +oss-preserve (1.1-2) unstable; urgency=low + + * Add "Conflicts: aumix" to resolve interaction problems. + (closes: Bug#132795) + + -- Chris Hanson Thu, 7 Feb 2002 16:00:30 -0500 + +oss-preserve (1.1-1) unstable; urgency=low + + * Initial submission to Debian. (closes: Bug#119185) + * Update descriptive text to mention phrase "Open Sound System". + * Update standards-version to 3.5.6. + + -- Chris Hanson Mon, 12 Nov 2001 23:42:15 -0500 + +oss-preserve (1.0-3) stable; urgency=low + + * Change package name. + + -- Chris Hanson Thu, 12 Apr 2001 11:27:21 -0400 + +ossctl (1.0-2) stable; urgency=low + + * If file "/etc/default/ossctl" exists, restore those settings rather + than the last saved ones in "/var/state/ossctl/settings". + + -- Chris Hanson Thu, 12 Apr 2001 09:56:05 -0400 + +ossctl (1.0-1) stable; urgency=low + + * Initial Release. + + -- Chris Hanson Tue, 10 Apr 2001 23:57:09 -0400 --- oss-preserve-1.1.orig/debian/compat +++ oss-preserve-1.1/debian/compat @@ -0,0 +1,2 @@ +5 + --- oss-preserve-1.1.orig/debian/control +++ oss-preserve-1.1/debian/control @@ -0,0 +1,20 @@ +Source: oss-preserve +Section: admin +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Varun Hiremath +Uploaders: Torsten Werner +Build-Depends: cdbs, debhelper (>= 6), libglib2.0-dev, quilt +Standards-Version: 3.8.1 +Vcs-Svn: https://bollin.googlecode.com/svn/oss-preserve/ +Vcs-Browser: http://bollin.googlecode.com/svn/oss-preserve/ + +Package: oss-preserve +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: aumix +Description: Program to save/restore OSS mixer settings + This package saves the Open Sound System (OSS) mixer settings into a + file when the machine is shut down, and restores them from the file + when it is restarted. It can optionally restore from a file of fixed + settings. --- oss-preserve-1.1.orig/debian/copyright +++ oss-preserve-1.1/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Chris Hanson on +Tue, 10 Apr 2001 18:10:00 -0400. +Adopted by Varun Hiremath on +Tue, 5 Sep 2006 20:33:47 +0530 + +It was downloaded from http://www.swiss.ai.mit.edu/projects/omnibook/ + +Upstream Author: Chris Hanson + +Copyright: © 2001 Hewlett-Packard Company + +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; version 2 dated June, 1991. + + 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 GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is © 2006, Varun Hiremath and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. --- oss-preserve-1.1.orig/debian/dirs +++ oss-preserve-1.1/debian/dirs @@ -0,0 +1,3 @@ +etc/default +usr/lib/oss-preserve +var/lib/oss-preserve --- oss-preserve-1.1.orig/debian/init.d +++ oss-preserve-1.1/debian/init.d @@ -0,0 +1,72 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: oss-preserve +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO + +# $Id: init.d 2966 2006-08-15 05:11:48Z cph $ +# +# Copyright (c) 2001 Hewlett-Packard Company +# +# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +set -e + +OSSCTL="/usr/lib/oss-preserve/ossctl" +FIXED="/etc/default/oss-preserve" +PREVIOUS="/var/lib/oss-preserve/settings" + +[ -x "${OSSCTL}" ] || exit 0 + +case "$1" in +start) + SETTINGS="" + if [ -s "${FIXED}" ]; then + SETTINGS="${FIXED}" + elif [ -s "${PREVIOUS}" ]; then + SETTINGS="${PREVIOUS}" + fi + if [ -n "${SETTINGS}" ]; then + echo -n "Restoring OSS mixer settings..." + "${OSSCTL}" restore < "${SETTINGS}" + echo "done." + fi + ;; +stop) + echo -n "Saving OSS mixer settings..." + "${OSSCTL}" save > "${PREVIOUS}" + echo "done." + ;; +restart|force-reload) + $0 stop + $0 start + ;; +status) + # http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/iniscrptact.html + # does not really specify an exit code: + exit 4 + ;; +*) + echo "Usage: $0 {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 --- oss-preserve-1.1.orig/debian/patches/glib.diff +++ oss-preserve-1.1/debian/patches/glib.diff @@ -0,0 +1,101 @@ +Index: oss-preserve-1.1/configure.in +=================================================================== +--- oss-preserve-1.1.orig/configure.in 2009-04-17 09:00:35.000000000 -0400 ++++ oss-preserve-1.1/configure.in 2009-04-17 09:00:39.000000000 -0400 +@@ -31,9 +31,9 @@ + CFLAGS="${CFLAGS} -Wall" + fi + +-AC_CHECK_PROG(GLIB_CONFIG, "glib-config", "yes", "no") +-if test "${GLIB_CONFIG}" != "yes"; then +- AC_MSG_ERROR("unable to find glib-config.") ++AC_CHECK_PROG(PKG_CONFIG, "pkg-config", "yes", "no") ++if test "${PKG_CONFIG}" != "yes"; then ++ AC_MSG_ERROR("unable to find pkg-config.") + fi + + AC_OUTPUT(Makefile) +Index: oss-preserve-1.1/Makefile.am +=================================================================== +--- oss-preserve-1.1.orig/Makefile.am 2009-04-17 09:00:35.000000000 -0400 ++++ oss-preserve-1.1/Makefile.am 2009-04-17 09:00:39.000000000 -0400 +@@ -19,6 +19,6 @@ + + bin_PROGRAMS = ossctl + ossctl_SOURCES = ossctl.c +-ossctl_LDFLAGS = `glib-config --libs` ++ossctl_LDFLAGS = `pkg-config glib-2.0 --libs` + +-AM_CFLAGS = `glib-config --cflags` ++AM_CFLAGS = `pkg-config glib-2.0 --cflags` +Index: oss-preserve-1.1/Makefile.in +=================================================================== +--- oss-preserve-1.1.orig/Makefile.in 2009-04-17 09:00:35.000000000 -0400 ++++ oss-preserve-1.1/Makefile.in 2009-04-17 09:00:39.000000000 -0400 +@@ -85,9 +85,9 @@ + + bin_PROGRAMS = ossctl + ossctl_SOURCES = ossctl.c +-ossctl_LDFLAGS = `glib-config --libs` ++ossctl_LDFLAGS = `pkg-config glib-2.0 --libs` + +-AM_CFLAGS = `glib-config --cflags` ++AM_CFLAGS = `pkg-config glib-2.0 --cflags` + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_CLEAN_FILES = +Index: oss-preserve-1.1/configure +=================================================================== +--- oss-preserve-1.1.orig/configure 2009-04-17 09:00:44.000000000 -0400 ++++ oss-preserve-1.1/configure 2009-04-17 09:01:43.000000000 -0400 +@@ -1276,38 +1276,38 @@ + CFLAGS="${CFLAGS} -Wall" + fi + +-# Extract the first word of ""glib-config"", so it can be a program name with args. +-set dummy "glib-config"; ac_word=$2 ++# Extract the first word of ""pkg-config"", so it can be a program name with args. ++set dummy "pkg-config"; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 + echo "configure:1283: checking for $ac_word" >&5 +-if eval "test \"`echo '$''{'ac_cv_prog_GLIB_CONFIG'+set}'`\" = set"; then ++if eval "test \"`echo '$''{'ac_cv_prog_PKG_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +- if test -n "$GLIB_CONFIG"; then +- ac_cv_prog_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test. ++ if test -n "$PKG_CONFIG"; then ++ ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. + else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then +- ac_cv_prog_GLIB_CONFIG=""yes"" ++ ac_cv_prog_PKG_CONFIG=""yes"" + break + fi + done + IFS="$ac_save_ifs" +- test -z "$ac_cv_prog_GLIB_CONFIG" && ac_cv_prog_GLIB_CONFIG=""no"" ++ test -z "$ac_cv_prog_PKG_CONFIG" && ac_cv_prog_PKG_CONFIG=""no"" + fi + fi +-GLIB_CONFIG="$ac_cv_prog_GLIB_CONFIG" +-if test -n "$GLIB_CONFIG"; then +- echo "$ac_t""$GLIB_CONFIG" 1>&6 ++PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" ++if test -n "$PKG_CONFIG"; then ++ echo "$ac_t""$PKG_CONFIG" 1>&6 + else + echo "$ac_t""no" 1>&6 + fi + +-if test "${GLIB_CONFIG}" != "yes"; then +- { echo "configure: error: "unable to find glib-config."" 1>&2; exit 1; } ++if test "${PKG_CONFIG}" != "yes"; then ++ { echo "configure: error: "unable to find pkg-config."" 1>&2; exit 1; } + fi + + trap '' 1 2 15 --- oss-preserve-1.1.orig/debian/patches/ld-as-needed.diff +++ oss-preserve-1.1/debian/patches/ld-as-needed.diff @@ -0,0 +1,29 @@ +--- ./Makefile.am~ 2011-09-14 10:57:59.000000000 +0200 ++++ ./Makefile.am 2011-09-14 11:00:14.560571554 +0200 +@@ -19,6 +19,6 @@ + + bin_PROGRAMS = ossctl + ossctl_SOURCES = ossctl.c +-ossctl_LDFLAGS = `pkg-config glib-2.0 --libs` ++ossctl_LDADD = `pkg-config glib-2.0 --libs` + + AM_CFLAGS = `pkg-config glib-2.0 --cflags` +--- ./Makefile.in~ 2011-09-14 10:57:59.000000000 +0200 ++++ ./Makefile.in 2011-09-14 11:00:29.920594088 +0200 +@@ -85,7 +85,7 @@ + + bin_PROGRAMS = ossctl + ossctl_SOURCES = ossctl.c +-ossctl_LDFLAGS = `pkg-config glib-2.0 --libs` ++ossctl_LDADD = `pkg-config glib-2.0 --libs` + + AM_CFLAGS = `pkg-config glib-2.0 --cflags` + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +@@ -99,7 +99,6 @@ + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + ossctl_OBJECTS = ossctl.o +-ossctl_LDADD = $(LDADD) + ossctl_DEPENDENCIES = + CFLAGS = @CFLAGS@ + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) --- oss-preserve-1.1.orig/debian/patches/ossctl.diff +++ oss-preserve-1.1/debian/patches/ossctl.diff @@ -0,0 +1,12 @@ +diff -urN oss-preserve-1.1.orig/ossctl.c oss-preserve-1.1/ossctl.c +--- oss-preserve-1.1.orig/ossctl.c 2001-04-10 11:05:55.000000000 +0530 ++++ oss-preserve-1.1/ossctl.c 2006-09-05 22:51:10.000000000 +0530 +@@ -28,7 +28,7 @@ + #include + + #include +-#include ++#include + #include + #include + --- oss-preserve-1.1.orig/debian/patches/series +++ oss-preserve-1.1/debian/patches/series @@ -0,0 +1,3 @@ +glib.diff +ossctl.diff +ld-as-needed.diff --- oss-preserve-1.1.orig/debian/postrm +++ oss-preserve-1.1/debian/postrm @@ -0,0 +1,55 @@ +#! /bin/sh + +# $Id: postrm 2966 2006-08-15 05:11:48Z cph $ +# +# Copyright (c) 2001 Hewlett-Packard Company +# +# 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., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# postrm script for oss-preserve +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + purge|remove) + rm -rf /var/lib/oss-preserve + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm 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 --- oss-preserve-1.1.orig/debian/rules +++ oss-preserve-1.1/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR) bindir=/usr/lib/oss-preserve