How to create a native multi deb package with static files?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
My source tree is as following:
.
âÂÂâÂÂâ debian
âÂÂààâÂÂâÂÂâ changelog
âÂÂààâÂÂâÂÂâ compat
âÂÂààâÂÂâÂÂâ control
âÂÂààâÂÂâÂÂâ copyright
âÂÂààâÂÂâÂÂâ README.Debian
âÂÂààâÂÂâÂÂâ rules
âÂÂààâÂÂâÂÂâ source
âÂÂâÂÂâ Makefile
âÂÂâÂÂâ sub1
âÂÂààâÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
âÂÂâÂÂâ sub2
â âÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
My control file defines the two sub-packages I want to create:
Source: pkg
Section: web
Priority: optional
Maintainer: Guillaume Humbert <guillaume.humbert.jp@gmail.com>
Build-Depends: debhelper (>=9)
Standards-Version: 3.9.7
Homepage: http://xxx
Package: pkg-sub1
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
Package: pkg-sub2
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
What I want as a result, is to have two created packages containing the correct /etc/pkg/pkg.conf file.
Is there a way to achieve this?
I am not even sure on what to put in the Makefile, since the conf files are both at the same location.
I was thinking having a dynamic Makefile, where I could inject a variable from dh_install, and have have dpkg-buildpackage to pick the right folder:
#!/usr/bin/make -f
.PHONY: all
all: # Nothing to build
install:
mkdir -p $(DESTDIR)/etc/pkg
cp $(SUB)/etc/pkg/* $(DESTDIR)/$(SUB)/etc/pkg/
Is that even possible?
package-management dpkg deb debuild
add a comment |Â
up vote
0
down vote
favorite
My source tree is as following:
.
âÂÂâÂÂâ debian
âÂÂààâÂÂâÂÂâ changelog
âÂÂààâÂÂâÂÂâ compat
âÂÂààâÂÂâÂÂâ control
âÂÂààâÂÂâÂÂâ copyright
âÂÂààâÂÂâÂÂâ README.Debian
âÂÂààâÂÂâÂÂâ rules
âÂÂààâÂÂâÂÂâ source
âÂÂâÂÂâ Makefile
âÂÂâÂÂâ sub1
âÂÂààâÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
âÂÂâÂÂâ sub2
â âÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
My control file defines the two sub-packages I want to create:
Source: pkg
Section: web
Priority: optional
Maintainer: Guillaume Humbert <guillaume.humbert.jp@gmail.com>
Build-Depends: debhelper (>=9)
Standards-Version: 3.9.7
Homepage: http://xxx
Package: pkg-sub1
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
Package: pkg-sub2
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
What I want as a result, is to have two created packages containing the correct /etc/pkg/pkg.conf file.
Is there a way to achieve this?
I am not even sure on what to put in the Makefile, since the conf files are both at the same location.
I was thinking having a dynamic Makefile, where I could inject a variable from dh_install, and have have dpkg-buildpackage to pick the right folder:
#!/usr/bin/make -f
.PHONY: all
all: # Nothing to build
install:
mkdir -p $(DESTDIR)/etc/pkg
cp $(SUB)/etc/pkg/* $(DESTDIR)/$(SUB)/etc/pkg/
Is that even possible?
package-management dpkg deb debuild
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My source tree is as following:
.
âÂÂâÂÂâ debian
âÂÂààâÂÂâÂÂâ changelog
âÂÂààâÂÂâÂÂâ compat
âÂÂààâÂÂâÂÂâ control
âÂÂààâÂÂâÂÂâ copyright
âÂÂààâÂÂâÂÂâ README.Debian
âÂÂààâÂÂâÂÂâ rules
âÂÂààâÂÂâÂÂâ source
âÂÂâÂÂâ Makefile
âÂÂâÂÂâ sub1
âÂÂààâÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
âÂÂâÂÂâ sub2
â âÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
My control file defines the two sub-packages I want to create:
Source: pkg
Section: web
Priority: optional
Maintainer: Guillaume Humbert <guillaume.humbert.jp@gmail.com>
Build-Depends: debhelper (>=9)
Standards-Version: 3.9.7
Homepage: http://xxx
Package: pkg-sub1
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
Package: pkg-sub2
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
What I want as a result, is to have two created packages containing the correct /etc/pkg/pkg.conf file.
Is there a way to achieve this?
I am not even sure on what to put in the Makefile, since the conf files are both at the same location.
I was thinking having a dynamic Makefile, where I could inject a variable from dh_install, and have have dpkg-buildpackage to pick the right folder:
#!/usr/bin/make -f
.PHONY: all
all: # Nothing to build
install:
mkdir -p $(DESTDIR)/etc/pkg
cp $(SUB)/etc/pkg/* $(DESTDIR)/$(SUB)/etc/pkg/
Is that even possible?
package-management dpkg deb debuild
My source tree is as following:
.
âÂÂâÂÂâ debian
âÂÂààâÂÂâÂÂâ changelog
âÂÂààâÂÂâÂÂâ compat
âÂÂààâÂÂâÂÂâ control
âÂÂààâÂÂâÂÂâ copyright
âÂÂààâÂÂâÂÂâ README.Debian
âÂÂààâÂÂâÂÂâ rules
âÂÂààâÂÂâÂÂâ source
âÂÂâÂÂâ Makefile
âÂÂâÂÂâ sub1
âÂÂààâÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
âÂÂâÂÂâ sub2
â âÂÂâÂÂâ etc
â | âÂÂâÂÂâ pkg
| | | âÂÂâÂÂâ pkg.conf
My control file defines the two sub-packages I want to create:
Source: pkg
Section: web
Priority: optional
Maintainer: Guillaume Humbert <guillaume.humbert.jp@gmail.com>
Build-Depends: debhelper (>=9)
Standards-Version: 3.9.7
Homepage: http://xxx
Package: pkg-sub1
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
Package: pkg-sub2
Architecture: any
Multi-Arch: foreign
Depends: $misc:Depends, $shlibs:Depends
Description: blabla
blablabla
What I want as a result, is to have two created packages containing the correct /etc/pkg/pkg.conf file.
Is there a way to achieve this?
I am not even sure on what to put in the Makefile, since the conf files are both at the same location.
I was thinking having a dynamic Makefile, where I could inject a variable from dh_install, and have have dpkg-buildpackage to pick the right folder:
#!/usr/bin/make -f
.PHONY: all
all: # Nothing to build
install:
mkdir -p $(DESTDIR)/etc/pkg
cp $(SUB)/etc/pkg/* $(DESTDIR)/$(SUB)/etc/pkg/
Is that even possible?
package-management dpkg deb debuild
package-management dpkg deb debuild
asked Apr 10 at 16:23
Guillaume
1011
1011
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023720%2fhow-to-create-a-native-multi-deb-package-with-static-files%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password