I’m looking to build a library for debian based distros, this mostly works fine, except for the inconvenience, that I can’t make ldconfig run postinst.
my rules is just the default file:
#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@
and I’ve created a file called ‘postinst’ with the following content:
#!/bin/sh set -e echo "Postinst running ..." ldconfig echo "Ran ldconfig"
I’ve chosen the way of simply adding the whole thing as debian.tar.gz to the buildservice.
It seems that postinst is not run at all, as I don’t get the output either.
Can anyone tell me how to do this the right way?
Thanks for any help!