Editing User:Mohammad7410/Packaging
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 133: |
Line 133: |
| dh_clean -k | | dh_clean -k |
| dh_installdirs | | dh_installdirs |
| + | dh_install |
| | | |
| # Build architecture-independent files here. | | # Build architecture-independent files here. |
Line 143: |
Line 144: |
| dh_testroot | | dh_testroot |
| dh_installchangelogs debian/changelog | | dh_installchangelogs debian/changelog |
- | dh_install
| + | dh_installdocs |
| + | dh_installexamples |
| + | # dh_install |
| # dh_installmenu | | # dh_installmenu |
| # dh_installdebconf | | # dh_installdebconf |
| + | # dh_installlogrotate |
| + | # dh_installemacsen |
| # dh_installpam | | # dh_installpam |
| # dh_installmime | | # dh_installmime |
| + | # dh_python |
| # dh_installinit | | # dh_installinit |
| + | # dh_installcron |
| + | # dh_installinfo |
| dh_installman | | dh_installman |
| dh_link | | dh_link |
Line 174: |
Line 182: |
| data/psfreedomicon.png usr/share/pixmaps | | data/psfreedomicon.png usr/share/pixmaps |
| data/psfreedom.desktop usr/share/applications/hildon | | data/psfreedom.desktop usr/share/applications/hildon |
- |
| |
- | == Additional files ==
| |
- | Although basic packaging was covered above, you might need extra files such as:
| |
- |
| |
- | A '''postinst''' file, which is a file that is run post installation (Setting up <packagename> ...), these files should be normal shell scripts that run the commands you need (such as chmod +x, update-sudoers etc...). Variations exist such as postinst/postrm/preinst/prerm, post is after, pre is before, inst is installation, rm is removal. Keep in mind that these are all run as root (with sudo!), so dbus-send commands should be run with run-standalone.sh(!!!), and permissions have to be kept in mind.
| |
- |
| |
- | #!/bin/sh
| |
- |
| |
- | echo "Updating sudoers"
| |
- | update-sudoers
| |
- |
| |
- | exit 0
| |
- |
| |
- | A '''.desktop''' file, which is a menu icon, this is installed to /usr/share/applications/hildon/, either by an install file, or a makefile.
| |
- |
| |
- | [Desktop Entry]
| |
- | Encoding=UTF-8
| |
- | Version=0.1
| |
- | Type=Application
| |
- | Name=PSFreedom # As shown in the menu.
| |
- | Icon=psfreedomicon # Icon file, e.g psfreedomicon.png in /usr/share/pixmaps/
| |
- | Exec=psfreedom # What to run, full path needed if not in $PATH (i.e if it's run from /opt)
| |
- | X-Osso-Service=org.maemo.psfreedom # (Fully optional! Should only be added if a .service file exists.
| |
- |
| |
- | A '''.service''' file, this is not normally needed, except if you want to launch your application via dbus and if you want to load a splash screen with hildon-desktop, again, this is optional. This is installed/copied to /usr/share/dbus-1/services/
| |
- |
| |
- | [D-BUS Service]
| |
- | Name=org.maemo.psfreedom # Name of service file, you decide what you want it to be.
| |
- | Exec=/usr/bin/psfreedom # What to execute.
| |
Learn more about Contributing to the wiki.