From 3db2e44f186c59429901b2c899e139ea60117a55 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Wed, 14 Oct 2015 23:07:23 +0200 Subject: don't add jitsi repo key and list and remove if present, sign package, attaching of sources to debian package not (yet) working --- resources/install/build.xml | 8 ++- resources/install/debian/changelog.tmpl | 6 +++ resources/install/debian/postinst | 92 ++++++--------------------------- 3 files changed, 27 insertions(+), 79 deletions(-) diff --git a/resources/install/build.xml b/resources/install/build.xml index 3922296..64fd24b 100644 --- a/resources/install/build.xml +++ b/resources/install/build.xml @@ -2024,9 +2024,8 @@ - - + @@ -2183,6 +2182,11 @@ tofile="${debianize.dir}/README.embedded-libraries" overwrite="true"/> + + + + + _DATE_ + _PACKAGE_NAME_ (_VERSION_) unstable; urgency=low * Updates upstream. diff --git a/resources/install/debian/postinst b/resources/install/debian/postinst index 0d01917..997155a 100644 --- a/resources/install/debian/postinst +++ b/resources/install/debian/postinst @@ -20,49 +20,8 @@ # sources.list setting for Jitsi updates. REPOCONFIG="deb http://download.jitsi.org/deb unstable/" -SOURCES_PREAMBLE="### THIS FILE IS AUTOMATICALLY CONFIGURED ### -# You may comment out this entry, but any other modifications may be lost.\n" - APT_CONFIG="`which apt-config 2> /dev/null`" -# Install the repository signing key -install_key() { - APT_KEY="`which apt-key 2> /dev/null`" - if [ -x "$APT_KEY" ]; then - "$APT_KEY" add - >/dev/null 2>&1 </dev/null) - - # Don't do anything if the file is there, since that probably means - # we have already installed it - if [ -r "$SOURCELIST" ]; then - if [ ! "$REPOMATCH" ]; then - # At this point wrong configuration is active. In that case, - # just abandon the mess and recreate the file - # with the correct configuration. - printf "$SOURCES_PREAMBLE" > "$SOURCELIST" - printf "$REPOCONFIG\n" >> "$SOURCELIST" - - if [ $? -eq 0 ]; then - return 0 - fi - return 2 - fi - fi + rm -f "$APT_SOURCESDIR/jitsi.list" +} - if [ -d "$APT_SOURCESDIR" ]; then - printf "$SOURCES_PREAMBLE" > "$SOURCELIST" - printf "$REPOCONFIG\n" >> "$SOURCELIST" - if [ $? -eq 0 ]; then - return 0 - fi - fi - return 2 +remove_key() { + APT_KEY="`which apt-key 2> /dev/null`" + if [ -x "$APT_KEY" ]; then + "$APT_KEY" del EB0AB654 + fi } ## MAIN ## -install_key -create_sources_lists +# Remove any Jitsi repository added by the package previously. +clean_sources_lists +# Remove jitsi repository key +remove_key -- cgit v1.1