183 |
$(install_script) debian/postinst debian/tmp/DEBIAN/postinst |
$(install_script) debian/postinst debian/tmp/DEBIAN/postinst |
184 |
$(install_script) debian/prerm debian/tmp/DEBIAN/prerm |
$(install_script) debian/prerm debian/tmp/DEBIAN/prerm |
185 |
|
|
186 |
# Filter out scripts. |
# Get list of dynamically linked executables |
187 |
dpkg-shlibdeps -p$(package) `for f in debian/tmp/bin/* \ |
dpkg-shlibdeps -p$(package) \ |
188 |
debian/tmp/libexec/* debian/tmp/hurd/* \ |
`file debian/tmp/bin/* \ |
189 |
debian/tmp/sbin/* ; do head -n1 $$f \ |
debian/tmp/hurd/* \ |
190 |
| sed -n -e '/^#!/!a\'$$'\n'$$f ; done` |
debian/tmp/lib/* \ |
191 |
|
debian/tmp/libexec/* \ |
192 |
|
debian/tmp/sbin/* \ |
193 |
|
| egrep '(executable.*dynamic)|(shared object)' \ |
194 |
|
| cut -f 1 -d ':'` |
195 |
dpkg-gencontrol -isp -p$(package) -Pdebian/tmp |
dpkg-gencontrol -isp -p$(package) -Pdebian/tmp |
196 |
chown -R root.root debian/tmp |
chown -R root.root debian/tmp |
197 |
dpkg --build debian/tmp .. |
dpkg --build debian/tmp .. |