Bug #680861 - change postinst or bug in debhelper?

2012-07-19 Thread Reinier Haasjes
Hi All,

I'm trying to resolve bug #680861 where the problem is that if the
config of aiccu is incorrect and thus the program can't start it breaks
the upgrade.

In the aiccu.postinst i have the line: #DEBHELPER#, debhelper replaces
this with:
# Automatically added by dh_installinit
if [ -x /etc/init.d/aiccu ]; then
update-rc.d aiccu defaults /dev/null
invoke-rc.d aiccu start || exit $?
fi
# End automatically added section

The problem is invoke-rc.d aiccu start || exit $? which exits the
postinst with an error if aiccu fails to start and thus brakes the upgrade.

I want to change this to invoke-rc.d aiccu start || true but then I
have to remove the #DEBHELPER# line and do it 'manually', ofcourse
this isn't the problem but I prefer to use debhelper as much as possible.

The problem is that if I (/aiccu) have this problem than other packages
should have the same problem and this would be a debpacker bug.
Is this a debhelper bug and should I report a bug or should I just
replace the code so it works for aiccu?

Thanks in advance for you advise.

Regards,

Reinier


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/5007beb0.8070...@haasjes.com



Accepted aiccu 20070115-15 (source amd64)

2012-03-29 Thread Reinier Haasjes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Mon, 26 Mar 2012 12:54:54 +0200
Source: aiccu
Binary: aiccu
Architecture: source amd64
Version: 20070115-15
Distribution: unstable
Urgency: low
Maintainer: Reinier Haasjes rein...@haasjes.com
Changed-By: Reinier Haasjes rein...@haasjes.com
Description: 
 aiccu  - SixXS Automatic IPv6 Connectivity Client Utility
Closes: 634102 644408
Changes: 
 aiccu (20070115-15) unstable; urgency=low
 .
   * Upgraded standards-version to 3.9.3
   * Fix fix for kfreebsd-* dependencies Updated control file (Closes: 
#634102)
   * Fix please enable hardening options Enabled all hardening options
 (Closes: #644408)
   * Lintian clean
 - Remove postrm.debhelper
 - Make non-executable debian/changelog debian/control
 - Add description to patch/09_binutils_gold.patch
Checksums-Sha1: 
 0ea35572a7200f5bb5e14476b858e6e1a6e569f0 1864 aiccu_20070115-15.dsc
 44f0528a1539faeecea9934ab8b0e8f91cfa2f4b 30450 aiccu_20070115-15.debian.tar.gz
 8dd6a3e583a666df888c058cba29444a0c17620c 58366 aiccu_20070115-15_amd64.deb
Checksums-Sha256: 
 f110ab24dba89fccdb676332d54be7a25a3623249e4505b62b484bfb54437818 1864 
aiccu_20070115-15.dsc
 972e273a214aa33f24440432700fd79baedead59d238f1f45d5aeb22d1c5350f 30450 
aiccu_20070115-15.debian.tar.gz
 eda3d0cf8f14d90db735e87d55e4b7b72787f1b1c9916a5da22786b89846b842 58366 
aiccu_20070115-15_amd64.deb
Files: 
 62d7aa88584e91119825ac67f49d295d 1864 net optional aiccu_20070115-15.dsc
 d6e257d6f6d5786bc62e599e2aa25817 30450 net optional 
aiccu_20070115-15.debian.tar.gz
 bdcfc957e33bc18c54c7b177c5744109 58366 net optional aiccu_20070115-15_amd64.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJPdEBmAAoJEFOxrG2xG2J7lLIQAKxR5goauiC+RpmcF1jibj7Z
liGcvBXlACSvbYzWRTBUDKhP3NGlsvhecMfChHE9Is3oX4UTrqLaQ9hIdEDM5y2u
YUmZBjvHS9aoMbpOed6v/OR/H4tZWfRpsyfW2FtkPjGFmv4dDpAEjlDgoB69f4m3
MVnbdENbkTjvx6AIIbkSeMumcDUM3PCQicE52eqJNAu3MnVcDPPjZR3pArc6D0+C
nbyO/FEzV3+Ic2TogVcgbDql3jdPjbSrZ4mIDv3HtPgiqsRe1QmCsurFPMuOgJBb
AAAc/UL+s3eIous3Myfrw5YtzDHYPy1mfsi76c5u9RAfoO1SsGNZ9YZyLduwPPcM
BWyYJYjsi8ybCxxKwzTbRXuz+QlNFBYUrhpjznKK6xq50OBk1xWHyVICwZXc4CAq
/+SQnFE/JpZtQDf2DGGaTHLcogZRZtAukrCMRObLWavJpbNeY8ESkM9CEF1q076B
0qEwFKbs4kietUDsutsRlQtc3y+jQ4VnerSxMvr5tfRGZCEFPkuRrIHxWORxn0XG
JDluDfThWrzTFGPw80xqSP6ip7mV3b47EqZiAqCRCr9ijKowNYFgT55YOGdC+RFy
Df5mol4lvdg89TWutgSF+SIuhfdrPGANvdd77AL4q4nGoShd6SuaUQoHjEZ9+51A
zJ+BsWkxc6hofv+CjhBi
=9/qC
-END PGP SIGNATURE-


Accepted:
aiccu_20070115-15.debian.tar.gz
  to main/a/aiccu/aiccu_20070115-15.debian.tar.gz
aiccu_20070115-15.dsc
  to main/a/aiccu/aiccu_20070115-15.dsc
aiccu_20070115-15_amd64.deb
  to main/a/aiccu/aiccu_20070115-15_amd64.deb


-- 
To UNSUBSCRIBE, email to debian-devel-changes-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1sddls-in...@franck.debian.org



Accepted aiccu 20070115-14 (source amd64)

2010-08-31 Thread Reinier Haasjes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Format: 1.8
Date: Thu, 26 Aug 2010 22:09:58 +0200
Source: aiccu
Binary: aiccu
Architecture: source amd64
Version: 20070115-14
Distribution: unstable
Urgency: low
Maintainer: Reinier Haasjes rein...@haasjes.com
Changed-By: Reinier Haasjes rein...@haasjes.com
Description: 
 aiccu  - SixXS Automatic IPv6 Connectivity Client Utility
Closes: 593983
Changes: 
 aiccu (20070115-14) unstable; urgency=low
 .
   * Fix preconfiguration fails Add test to check if brokers-file exist.
 (Closes: #593983)
   * Upgraded standards-version to 3.9.1
   * Removed lintian-overrides; Lintian complained: unused-override
 no-upstream-changelog
   * Add Recommends on bind9-host | dnsutils for the config script. -
 Thanks to Evgeni Golov
   * debian/aiccu.config:
 + grep for $RET, not $RET or it will fail on names with spaces. -
 Thanks to Evgeni Golov
Checksums-Sha1: 
 ae8c3a0d2997dc0ce8d2af65fa91df321762ec1f 1166 aiccu_20070115-14.dsc
 9d3f7becde966f50712e4bc877823fe0b1f84097 30611 aiccu_20070115-14.debian.tar.gz
 e32d6c74a535865268591dbdebaa337f6efb0cb7 57480 aiccu_20070115-14_amd64.deb
Checksums-Sha256: 
 708704a5536509a3d9f90bbc52169fb46cdc7e6fff7975d06cdd86912e371d00 1166 
aiccu_20070115-14.dsc
 03597cb44141b2f20a86966565169851ebeda3d0bb4dfea85af8c189194c2c03 30611 
aiccu_20070115-14.debian.tar.gz
 04460b43f3cca2f2f3cd1f09f27c0cc2dc5c58d4f1626e515492a02cd9d82c78 57480 
aiccu_20070115-14_amd64.deb
Files: 
 6e13b344d65482822bbe586a875593b9 1166 net optional aiccu_20070115-14.dsc
 e8be8f937acc9c71386316ebf58ae582 30611 net optional 
aiccu_20070115-14.debian.tar.gz
 32e8a28e512eb258395390164e53aefa 57480 net optional aiccu_20070115-14_amd64.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkx9RpgACgkQST77jl1k+HCPDwCfc7wX2RWTAGawvRgLEOko6Sp6
d8sAnR0SZgvr7cl0eAGE2p4mWlEaiZcb
=s3Lz
-END PGP SIGNATURE-


Accepted:
aiccu_20070115-14.debian.tar.gz
  to main/a/aiccu/aiccu_20070115-14.debian.tar.gz
aiccu_20070115-14.dsc
  to main/a/aiccu/aiccu_20070115-14.dsc
aiccu_20070115-14_amd64.deb
  to main/a/aiccu/aiccu_20070115-14_amd64.deb


-- 
To UNSUBSCRIBE, email to debian-devel-changes-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1oqvct-00026b...@franck.debian.org



Accepted aiccu 20070115-13 (source amd64)

2010-06-14 Thread Reinier Haasjes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Format: 1.8
Date: Sat, 29 May 2010 21:19:43 +0200
Source: aiccu
Binary: aiccu
Architecture: source amd64
Version: 20070115-13
Distribution: unstable
Urgency: low
Maintainer: Reinier Haasjes rein...@haasjes.com
Changed-By: Reinier Haasjes rein...@haasjes.com
Description: 
 aiccu  - SixXS Automatic IPv6 Connectivity Client Utility
Closes: 574498 583542
Changes: 
 aiccu (20070115-13) unstable; urgency=low
 .
   * Fix Package upgrade fails in postinst Added db_stop to
 aiccu.postinst (Closes: #574498) - Thanks to Jean-Louis Dupond
   * Added Spanish translation (Closes: #583542) - Thanks to CamaleĆ³n
   * Switch to dpkg-source 3.0 (quilt) format
Checksums-Sha1: 
 a71c62d35d8ac79be6d14d1f84148acce9cf9f05 1166 aiccu_20070115-13.dsc
 29a0e5f9a130451903406235a0fb37258ed1a5a1 29742 aiccu_20070115-13.debian.tar.gz
 10fcaa1a00026b60eca0bcafe1a59dbbc8fb3f47 53566 aiccu_20070115-13_amd64.deb
Checksums-Sha256: 
 32dab05868f9f0ca9f7d291e2c48f40845f897957ec1fe30f43b56e088ff83e1 1166 
aiccu_20070115-13.dsc
 bfd92fc2a9595c93a40bbbaa2afae4eb32ca0f308b4bec6bf7e79e6c878f9724 29742 
aiccu_20070115-13.debian.tar.gz
 0e16e4ece9c6e1cbb2dce96f6bd512b747cc52fdc1367be5f1d8e1355514fb71 53566 
aiccu_20070115-13_amd64.deb
Files: 
 56bf4f5238af97ddd12c14d807664e8c 1166 net optional aiccu_20070115-13.dsc
 3ea71342355045113ed6163a9a63ff92 29742 net optional 
aiccu_20070115-13.debian.tar.gz
 6c5acc434e2f3338a0fba784478db9d5 53566 net optional aiccu_20070115-13_amd64.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwWpycACgkQST77jl1k+HBK8QCeOZ4IGRPL6L0Dmc9RmDFM6Z+w
zhcAoOKA0FUc9WOlYhkV+AMTp5xJ+HFm
=NQSA
-END PGP SIGNATURE-


Accepted:
aiccu_20070115-13.debian.tar.gz
  to main/a/aiccu/aiccu_20070115-13.debian.tar.gz
aiccu_20070115-13.dsc
  to main/a/aiccu/aiccu_20070115-13.dsc
aiccu_20070115-13_amd64.deb
  to main/a/aiccu/aiccu_20070115-13_amd64.deb


-- 
To UNSUBSCRIBE, email to debian-devel-changes-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1ooiry-0006ph...@ries.debian.org



Accepted aiccu 20070115-12 (source amd64)

2010-03-07 Thread Reinier Haasjes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Format: 1.8
Date: Sat, 06 Mar 2010 10:08:09 +0100
Source: aiccu
Binary: aiccu
Architecture: source amd64
Version: 20070115-12
Distribution: unstable
Urgency: low
Maintainer: Reinier Haasjes rein...@haasjes.com
Changed-By: Reinier Haasjes rein...@haasjes.com
Description: 
 aiccu  - SixXS Automatic IPv6 Connectivity Client Utility
Closes: 538129 564197 566910 567730
Changes: 
 aiccu (20070115-12) unstable; urgency=low
 .
   * Lintian clean (Closes: #566910)
   * Fix setupscript not executed (Closes: #538129) - Thanks to
 Norman Rasmussen
   * Fix Should handle empty DNS query responses Use default brokers
 list if no/empty reply (Closes: #567730)
   * Fix No status section in aiccu init script Rewrote init script
 (Closes: #564197)
   * Changed VCS to github.com
   * Upgraded standards-version to 3.8.4
   * Initialize syslog so that we log with our PID as Daemon - Thanks to
 Norman Rasmussen
   * Allow 'tunnels' mode when there's an already running instance - Thanks
 to Norman Rasmussen
Checksums-Sha1: 
 b600bdd97134078a63f52b1e2002ce95396c9f06 1140 aiccu_20070115-12.dsc
 6523ca465ebd7f4146020ad208228061f8a4db8d 26126 aiccu_20070115-12.diff.gz
 acfa76cf41f272648e331ec629fd2303440e117e 52746 aiccu_20070115-12_amd64.deb
Checksums-Sha256: 
 54b0736bfcdbdf64b9dc998b3e50955969ac8d26679ee358b246716e632e8f7b 1140 
aiccu_20070115-12.dsc
 1cf4b7b3abcd9207e354c400c74b99ded3a9c4b04f6eca3e6e54aebeb6cf6d76 26126 
aiccu_20070115-12.diff.gz
 7aac5cbf9615788b9d8c8006319a427577903996f7a0877ff987d2db70180a71 52746 
aiccu_20070115-12_amd64.deb
Files: 
 a97f635d45d3152bcfe922c4687c5bab 1140 net optional aiccu_20070115-12.dsc
 60e64ef8703599a9dc0e5d2a2fb1a33f 26126 net optional aiccu_20070115-12.diff.gz
 e6528da9d3b5c73e5de316aa6124e54f 52746 net optional aiccu_20070115-12_amd64.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkuT490ACgkQST77jl1k+HAbzgCdFM3hLBCUv+ZCj40QlT+GvpdK
CacAn0mbIhp/P2eMnEzgVSTVxRL9IzDb
=9yZ2
-END PGP SIGNATURE-


Accepted:
aiccu_20070115-12.diff.gz
  to main/a/aiccu/aiccu_20070115-12.diff.gz
aiccu_20070115-12.dsc
  to main/a/aiccu/aiccu_20070115-12.dsc
aiccu_20070115-12_amd64.deb
  to main/a/aiccu/aiccu_20070115-12_amd64.deb


-- 
To UNSUBSCRIBE, email to debian-devel-changes-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1nokzi-0004pp...@ries.debian.org



Accepted aiccu 20070115-11 (source i386)

2010-01-07 Thread Reinier Haasjes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Format: 1.8
Date: Wed, 06 Jan 2010 10:02:24 +0100
Source: aiccu
Binary: aiccu
Architecture: source i386
Version: 20070115-11
Distribution: unstable
Urgency: low
Maintainer: Reinier Haasjes rein...@haasjes.com
Changed-By: Reinier Haasjes rein...@haasjes.com
Description: 
 aiccu  - SixXS Automatic IPv6 Connectivity Client Utility
Closes: 512674 529185 531003 559683 561324 562803
Changes: 
 aiccu (20070115-11) unstable; urgency=low
 .
   * New maintainer. (Closes: #529185: ITA: aiccu -- SixXS Automatic IPv6
 Connectivity Client Utility)
   * Install aiccu.conf to usr/share/aiccu/conf-templates/
 and use in postinst (Closes: #559683) - Thanks to Patrick Schoenfeld
   * Fix leaves password in debconf database add db_reset to postinst
 (Closes: #512674)
   * Fix tunnel does not survive suspend Add restart script to
 /etc/pm/sleep.d (Closes: #531003)
   * Added Japanese translation (Closes: #562803) - Thanks to Hideki Yamane
   * Fix uses non-essential tools in the config script (Closes: #561324)
 - get brokers list by dns (instead of own binary)
 - supply static brokerlist if dns is unavailable
 - get tunnel ID in postinst (using own binary)
   * Minimize rules file - Thanks to Patrick Schoenfeld
   * Added VCS-Headers
   * Fixed spelling-error-in-binary
   * Fixed maintainer-script-empty preinst
   * Fixed maintainer-script-without-set-e postinst
   * Upgraded compat version to 7
   * Added debian/README.source
   * Upgraded standards-version to 3.8.3
   * Added no-upstream-changelog to lintian-overrides
   * Add dependency on ucf
Checksums-Sha1: 
 2e38ca6c2b391a7b5e68a84a4ef2a33918534cec 1128 aiccu_20070115-11.dsc
 123233e0e202e4fe87441950341500823da03c59 23487 aiccu_20070115-11.diff.gz
 f36e0dc9830c002c648c32c0d427dd496b240d44 47656 aiccu_20070115-11_i386.deb
Checksums-Sha256: 
 f0a0f2dce5f9c629aa6940ce51972d5329edbca904bbb817c947c9849d2d5e17 1128 
aiccu_20070115-11.dsc
 e036d67859552d3e4fb601a8f3ac94d695f9667f52328fcf27c63536f1200078 23487 
aiccu_20070115-11.diff.gz
 9a98deb945d4a2721b580c10b21cf75797b64d9ed907783f9b86ba4fa49fe3ec 47656 
aiccu_20070115-11_i386.deb
Files: 
 ad9b9e8488d6adec83baa29c7ff7d2dc 1128 net optional aiccu_20070115-11.dsc
 645bde58455ca0b2585e0f0f8d000f05 23487 net optional aiccu_20070115-11.diff.gz
 bb9ac22f98dd5e6f096d538eb841caa8 47656 net optional aiccu_20070115-11_i386.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAktGOe4ACgkQBxd04ADYzRbVkACfZ+9ck2wooYv/sRHXyKTTWNhl
ulcAoIvUaKMZrJovA93xXT4MY1W1U2ha
=jRgq
-END PGP SIGNATURE-


Accepted:
aiccu_20070115-11.diff.gz
  to main/a/aiccu/aiccu_20070115-11.diff.gz
aiccu_20070115-11.dsc
  to main/a/aiccu/aiccu_20070115-11.dsc
aiccu_20070115-11_i386.deb
  to main/a/aiccu/aiccu_20070115-11_i386.deb


-- 
To UNSUBSCRIBE, email to debian-devel-changes-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: bug #561324: asking questions in postinst

2009-12-30 Thread Reinier Haasjes
Hi,

 Another good solution would be to get the brokers list in the
 config/preinst (and ask which one to use) if bind or host are already
 there (the common case) and to get the list in the postinst if the
 information has not already been gotten.

I think this won't be such a bad solution. It can also solve the problem
that if somebody can't do a TCP-query (the result is a long dns answer)
that he can still select an broker.
I won't let the user choose but first try to use bind/host, if this
failed because they don't exist or tcp query failed I can go to the
backup list.

Regards,

Reinier


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: bug #561324: asking questions in postinst

2009-12-30 Thread Reinier Haasjes
 This doesn't help with any of your other dependencies, just the dependency
 on debconf (or some other DCMS implementation).
 
So if I understand correctly a (pre-)depend on host/dig won't help to
make sure bind/dig is installed during the config script.

My idea now is the following:
config-script:
1) if host/dig is available use it to download the list.
2) if dns-query failed of host/dig is unavailable use static list (will
be packed)
3) ask the user which broker to use
45) ask username  password

postinst-script:
1) check if user has 1 tunnel
2) if user has 1 tunnel ask which one to use, else just use the one.
3) create the rest of the config script...

Regards,

Reinier


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



bug #561324: asking questions in postinst

2009-12-28 Thread Reinier Haasjes
Hi,

I'm trying to solve bug #561324 which uses it's own binary in the config
script.

It uses it's own binary to get some information (tunnel id) which uses
login+password to retrieve, it really needs this to compile a good
config script (if you have more than 1 tunnel).

My idea on solving this is to move the complete config script to
postinst and ask all the question there.
I read everywhere that this is not the preferred way to go but I can't
discover if it is prohibited by the policy.

Is it prohibited by the policy to ask questions in the postinst-script?

Does somebody know a better way of solving this?

Thanks in advance.

Best regards,

Reinier


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: bug #561324: asking questions in postinst

2009-12-28 Thread Reinier Haasjes
Hi,

 Why? Is it really required to have _all_ questions in the postinst?

No, not all. There are 4 questions asked.
1) brokers list, the list is received by the package-binary and the user
selects te broker he wants to use. For this I can use a dns-query (type
TXT) but dig and host are both not essential packages, so this still has
to go to the postinst.

23) username and password, this can be asked in the config-script

4) tunnel name, for this the binary is nessesary because it needs to
login. This has to move to the postinst.

 Isn't it possible to create a configuration that receives
 this information on run?

1,2 3: No
4: only if a user has only 1 tunnel.

Best regards,

Reinier


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org