Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
21cb919b
Commit
21cb919b
authored
10 years ago
by
Ivica Bukvic
Browse files
Options
Downloads
Plain Diff
Merge pull request
#10
from agraef/master
More fixes to the Debian packaging.
parents
5e3fa9bd
cc124777
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debuild/debian/postrm
+2
-7
2 additions, 7 deletions
debuild/debian/postrm
debuild/debian/preinst
+2
-7
2 additions, 7 deletions
debuild/debian/preinst
debuild/debian/rules
+11
-6
11 additions, 6 deletions
debuild/debian/rules
with
15 additions
and
20 deletions
debuild/debian/postrm
+
2
−
7
View file @
21cb919b
#!/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
;;
...
...
This diff is collapsed.
Click to expand it.
debuild/debian/preinst
+
2
−
7
View file @
21cb919b
#!/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
)
...
...
This diff is collapsed.
Click to expand it.
debuild/debian/rules
+
11
−
6
View file @
21cb919b
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment