aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-14 23:07:23 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-14 23:07:23 +0200
commit3db2e44f186c59429901b2c899e139ea60117a55 (patch)
treea5b737e1d2696f6a10667472fc33a0f0b353e5e4
parenteafab93cce7f73a144958e8cd9b991393fa689fb (diff)
downloadjitsi-3db2e44f186c59429901b2c899e139ea60117a55.zip
jitsi-3db2e44f186c59429901b2c899e139ea60117a55.tar.gz
jitsi-3db2e44f186c59429901b2c899e139ea60117a55.tar.bz2
don't add jitsi repo key and list and remove if present, sign package, attaching of sources to debian package not (yet) working
-rw-r--r--resources/install/build.xml8
-rw-r--r--resources/install/debian/changelog.tmpl6
-rw-r--r--resources/install/debian/postinst92
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 @@
<!-- Build binary .deb package -->
<exec executable="${dpkg-buildpackage}" dir="${debian.target.dir}">
<arg value="-tc"/>
- <arg value="-us"/>
- <arg value="-uc"/>
<arg value="-b"/>
+ <!-- <arg value="-sa"/> -->
<arg value="-d"/>
<arg value="-a${deb-arch}"/>
</exec>
@@ -2183,6 +2182,11 @@
tofile="${debianize.dir}/README.embedded-libraries"
overwrite="true"/>
+ <!-- <copy file="${debian.dir}/${package.name}_${sip-communicator.version}.orig.tar.gz" -->
+ <!-- tofile="${debian.tmp.dir}/${package.name}_${sip-communicator.version}.orig.tar.gz" -->
+ <!-- overwrite="true"/> -->
+
+
<!-- Prepare man page file -->
<copy file="${inst.resrc}/debian/jitsi.1.tmpl"
tofile="${debianize.dir}/${package.name}.1"
diff --git a/resources/install/debian/changelog.tmpl b/resources/install/debian/changelog.tmpl
index 54ef82c..628fb8c 100644
--- a/resources/install/debian/changelog.tmpl
+++ b/resources/install/debian/changelog.tmpl
@@ -1,3 +1,9 @@
+_PACKAGE_NAME_ (_VERSION_) jessie-add; urgency=medium
+
+ * Build for jessie-add.
+
+ -- Wolfgang Wiedmeyer <debian@fossencdi.org> _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 <<KEYDATA
------BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v1.4.10 (GNU/Linux)
-
-mQGhBEhbdJIRBACN5cMoea12WK3PX+DbMVgW/q31iyirUAZD/s0AB4yF49Nsiw2C
-FLeu4/FRec43xiiprE9GSpWqRNTz2L2J+EeQPR7xIW9LFEL6D9ekua7keO2pkxh6
-DoaOx59ThvEPqIr4v93NXwmt+nmTrxD+U0jbIhogTK3+XWbaPLLjmAPXfwCghJhr
-PetYtTttuAXb3LFnDBPQIRMD+MVAq62fpKmYgrPTJaEaAyz4WAR4cCmdC/1zP2AD
-xVeDtkzG8KAb+K/SNTWglqtjcqlXlevBSn+qukzZaIluuhztTLciQNA35KHchdtI
-Z28S/+xX2drhvrakBZwYceMrQkHcjAC4lUb6bUjeumPt2XfNARnVhkmSH6EJFPbk
-7YQD/i75r9uXuPO3QleAXutbPdsIa6M1JCJ6R51QP2vM3Wa+yuRZEfz3R6tEv+/D
-RfImnLt0fUEm+h2vPnH5jt6uezd52JO1CtJxsEVGdaGcI5X4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4MBGSQiCYjsZZqEgCeN703sb9cqYr/K04d8NCLx5M4BOE=
-=lUEu
------END PGP PUBLIC KEY BLOCK-----
-KEYDATA
- fi
-}
# Parse apt configuration and return requested variable value.
apt_config_val() {
@@ -80,50 +39,29 @@ find_apt_sources() {
APT_SOURCESDIR="$APTDIR$APTETC$(apt_config_val 'Dir::Etc::sourceparts')"
}
-# Add the Jitsi repository to the apt sources.
+# Remove our custom sources list file.
# Returns:
-# 0 - sources list was created
-# 2 - error
-create_sources_lists() {
+# 0 - successfully removed, or not configured
+# !0 - failed to remove
+clean_sources_lists() {
if [ ! "$REPOCONFIG" ]; then
return 0
fi
find_apt_sources
- SOURCELIST="$APT_SOURCESDIR/jitsi.list"
-
- # Check if the correct repository configuration is in there.
- REPOMATCH=$(grep "^[[:space:]#]*\b$REPOCONFIG\b" "$SOURCELIST" \
- 2>/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