Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Guide: create a debian package for project

Guide: create a debian package for project 7 years 2 months ago #8755

  • benoit
  • benoit's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 180
  • Thank you received: 1
  • Karma: 0
Hi all,
I created a tutorial to create a project debian package.
note: .deb package for Ubuntu 14.04 or derivate distro (Linux Mint 17.3).

You can download my Guide (pdf) in follow link: mon-partage.fr/f/BqSGHRBL/ file deleted, see the new download link in the following #8761 message

Create a debian package will be interesting for backup or to share yours projects.
For this I use the Proview demo package struture.
I hope this tuto will useful for all. ;)

For Claes,
The .deb packages realised with this tutorial run fine (no error during install) but after install I must to fix the node name (Sim999 and Prod01 bus) manualy.
Do you have a solution to solve this issue?
Thanks a lot.

/Ben
Last Edit: 7 years 2 months ago by benoit.
The administrator has disabled public write access.

Guide: create a debian package for project 7 years 2 months ago #8757

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Ben,

In postinst a wb script file is created to change the nodename for the simulate node under Bus999. If the scripts doesn't work it could be that the name of the NodeConfig object under Bus999 is not named DemoNode.
# Create a wb_cmd script that inserts nodename and creates bootfile
cat > $initpwrc <<EOF
set attr/name=Bus999-DemoNode/attr=NodeName/value="$nodename"/noconf
save
create boot/node=DemoNode
exit
EOF

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: benoit

Guide: create a debian package for project 7 years 2 months ago #8761

  • benoit
  • benoit's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 180
  • Thank you received: 1
  • Karma: 0
Hi all,
I have update my guide with the Claes's comments.
With this new version, all run fine during installation (the nodename issue is solved).

Download link: mon-partage.fr/f/pDzkCl7l/

I hope this guide will be usefull ;)

For Claes,
this guide is usable only for 1 volume project... what would be the modifications to add for a multi volumes project?
Thanks.

/Ben
The administrator has disabled public write access.

Guide: create a debian package for project 7 years 2 months ago #8764

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Ben,

Do you mind if I add a link to this guide on the document page?

If you want to add more volumes and actually nodes, you have to set the set the node names in the NodeConfig objects and also to build the nodes in the postinst script. Note though that you can't set the current node name (as is set in the example) in several nodes on the same bus.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: benoit

Guide: create a debian package for project 7 years 2 months ago #8766

  • benoit
  • benoit's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 180
  • Thank you received: 1
  • Karma: 0
Hi Claes,
good idea for the link on the document page ;)

if I have time, I will test the multi-volume .deb package.
Thanks.
/Ben
The administrator has disabled public write access.

Guide: create a debian package for project 6 years 10 months ago #9012

  • benoit
  • benoit's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 180
  • Thank you received: 1
  • Karma: 0
Hi Claes,
I have update my guide with a little correction: it's seem to be no critical but maybe util ;)
Thanks.
/Ben
Attachments:
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 8.455 seconds