sysvinit instead of systemd?

Olivier Molinete olivier at molinete.org
Sun Apr 13 04:51:10 CEST 2014


 

Hi Teddy! 

First of all, sorry for the delay. I was out of the city and I couldn't
test your solution till today... :( 

I answer you on your message body. 

Thank you very much once again for such a great tool and for your
support! 

Greetings from Madrid,
Olivier Molinete 

On 03/04/2014 21:36, Teddy Hogeborn wrote: 

>> Well, yes and no. Yes, Mandos, the program, will work perfectly well if you get the package installed, but getting the package installed is the hard part, as the dependencies of the Debian package are set such that it "requires" either a newer version of the avahi-daemon package or the systemd-sysv package. Mandos itself does not have these requirements, but the Debian packaging system will make it hard for you to install the 1.6.4 Mandos package if you do not fulfill them.
> 
> Pretty interesting. Nevertheless, using the solution provided (manual compilation of the source code), both .deb packages still need some dependencies, that I'll post in the next paragraph.
> 
>> You could download the source code yourself and compile a patched version of the stable package without the requirements previously mentioned:
>> 
>> aptitude install bzr bzr-builddeb debhelper docbook-xml docbook-xsl libavahi-core-dev libgpgme11-dev libgnutls-dev xsltproc pkg-config systemd python python-gnutls python-dbus python-avahi python-gobject python-argparse
>> bzr branch http://ftp.recompile.se/pub/mandos/release [1] mandos
>> cd mandos sed -i -e 's/, avahi-daemon (>= 0.6.31-3)$//' -e '/| systemd-sysv/d'
>> bzr builddeb --builder='debuild -i -us -uc -b'
>> cd .. dpkg -i mandos_1.6.4*.deb
>> 
>> Note that the while the above build process will install systemd, it will not be used for booting, it can safely be uninstalled after building the packages, and the package files (the *.deb files) can be copied and safely re-used without installing systemd.
> 
> I have to say that this solution works flawlessly, and after the .deb packages for mandos(-server) and mandos(-client) were generated on a temporary VM, I only have to manually upload them to the final VM and install them without any problem, avoiding to install (and uninstall later) the systemd package, and conserving sysvinit which is my favourite. So, cool! That's just what I wanted :)
> 
> Anyways, both .debs still need some dependencies to be satisfied in order to get installed correctly and they can work as expected. Here they are: 
> 
> For the mandos(-server) case: 
> 
> # apt-get install python-gnutls python-dbus python-avahi python-gobject avahi-daemon python-urwid python-urwid
> # dpkg -i mandos*all.deb 
> 
> For the mandos-client case:
> 
> # apt-get install libavahi-core7
> # dpkg -i mandos-client*.deb
> 
> Note that there is also a little mistake on the sed command (input file to work is not specified: ./debian/control), so my final commands were:
> 
> # apt-get install bzr bzr-builddeb debhelper docbook-xml docbook-xsl libavahi-core-dev libgpgme11-dev libgnutls-dev xsltproc pkg-config systemd python python-gnutls python-dbus python-avahi python-gobject python-argparse
> # mkdir mandos_temp
> # cd mandos_temp
> # bzr branch http://ftp.recompile.se/pub/mandos/release mandos
> # cd mandos
> # sed -i -e 's/, avahi-daemon (>= 0.6.31-3)$//' -e '/| systemd-sysv/d' ./debian/control
> # bzr builddeb --builder='debuild -i -us -uc -b'
> # cd ..
> 
> (RESTORING THE VM WITHOUT HAVING TO INSTALL THE NECESSARY PACKAGES FOR THE SOURCE CODE COMPILATION...)
> 
> # apt-get install python-gnutls python-dbus python-avahi python-gobject avahi-daemon python-urwid python-urwid
> # dpkg -i mandos*all.deb
> 
> # apt-get install libavahi-core7
> # dpkg -i mandos-client*.deb
 

Links:
------
[1] http://ftp.recompile.se/pub/mandos/release
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.recompile.se/pipermail/mandos-dev/attachments/20140413/72e02b61/attachment.html>


More information about the Mandos-Dev mailing list