Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
cc124777
Commit
cc124777
authored
Nov 18, 2014
by
Albert Gräf
Browse files
More fixes to the Debian packaging.
parent
5e3fa9bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
debuild/debian/postrm
View file @
cc124777
#!/bin/sh
# postrm script for p
ure
# postrm script for p
d-l2ork
#
# see: dh_installdeb(1)
...
...
@@ -22,12 +22,7 @@ set -e
case
"
$1
"
in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear
)
if
[
remove
=
"
$1
"
-o
abort-install
=
"
$1
"
-o
disappear
=
"
$1
"
]
;
then
for
x
in
cyclist pdsend pdreceive
;
do
dpkg-divert
--package
pd-l2ork
--remove
--rename
--divert
/usr/bin/
$x
.orig /usr/bin/
$x
done
for
x
in
pdsend pdreceive
;
do
dpkg-divert
--package
pd-l2ork
--remove
--rename
--divert
/usr/share/man/man1/
$x
.1.orig.gz /usr/share/man/man1/
$x
.1.gz
done
dpkg-divert
--package
pd-l2ork
--remove
--rename
--divert
/usr/share/icons/hicolor/128x128/mimetypes/text-x-puredata.png.orig /usr/share/icons/hicolor/128x128/mimetypes/text-x-puredata.png
fi
;;
...
...
debuild/debian/preinst
View file @
cc124777
#!/bin/sh
# preinst script for p
ure
# preinst script for p
d-l2ork
#
# see: dh_installdeb(1)
...
...
@@ -16,12 +16,7 @@ set -e
# Move files out of the way which are also in the vanilla Pd package.
case
"
$1
"
in
install
|
upgrade
)
for
x
in
cyclist pdsend pdreceive
;
do
dpkg-divert
--package
pd-l2ork
--add
--rename
--divert
/usr/bin/
$x
.orig /usr/bin/
$x
done
for
x
in
pdsend pdreceive
;
do
dpkg-divert
--package
pd-l2ork
--add
--rename
--divert
/usr/share/man/man1/
$x
.1.orig.gz /usr/share/man/man1/
$x
.1.gz
done
dpkg-divert
--package
pd-l2ork
--add
--rename
--divert
/usr/share/icons/hicolor/128x128/mimetypes/text-x-puredata.png.orig /usr/share/icons/hicolor/128x128/mimetypes/text-x-puredata.png
;;
abort-upgrade
)
...
...
debuild/debian/rules
View file @
cc124777
...
...
@@ -16,14 +16,19 @@ override_dh_auto_build:
override_dh_auto_install
:
mkdir
-p
debian/pd-l2ork
&&
mv
packages/linux_make/build/usr debian/pd-l2ork
# Remove some unneeded files.
cd
debian/pd-l2ork/
&&
rm
-f
Makefile
README.txt
cd
debian/pd-l2ork/usr/lib/pd-l2ork/extra
&&
rm
-rf
*/*.pd_linux_o
*/*.la
# Remove cyclist and pdsend/pdreceive which are provided by other packages.
cd
debian/pd-l2ork/usr/bin
&&
rm
-rf
pdsend
pdreceive
cyclist
cd
debian/pd-l2ork/usr/share/man/man1
&&
rm
-rf
pdsend.*
pdreceive.*
# Move the Gem include files into the pd-l2ork include directory to prevent
# conflicts with other packages providing these files.
cd
debian/pd-l2ork/usr
&&
mv
include/Gem
include/pd-l2ork
# Edit the Gem pkgconfig file accordingly and rename it.
cd
debian/pd-l2ork/usr/lib/pkgconfig
&&
sed
-e
's?/include?/include/pd-l2ork?g'
-e
's?/lib/pd/extra?/lib/pd-l2ork/extra?g'
<
Gem.pc
>
pd-l2ork-Gem.pc
&&
rm
-f
Gem.pc
# Default preferences file.
install
-d
debian/pd-l2ork/etc/pd-l2ork
&&
ln
-s
-f
/usr/lib/pd-l2ork/default.settings
debian/pd-l2ork/etc/pd-l2ork/default.settings
# Get rid of the Gem development files (these are provided elsewhere) and
# other stuff that's neither needed nor wanted.
cd
debian/pd-l2ork/
&&
rm
-f
Makefile
README.txt
cd
debian/pd-l2ork/usr
&&
rm
-rf
include/Gem
lib/pkgconfig
lib/pd-l2ork/extra/*/*.pd_linux_o
lib/pd-l2ork/extra/*/*.la
# XXXTODO: Do we want to move these over to the doc hierarchy??
# rm -f debian/pd-l2ork/usr/lib/pd-l2ork/extra/*-help.pd
# XXXTODO: This is deprecated, so we might have to migrate to dh_python2 in
# the future. See http://deb.li/dhs2p.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment