MESSAGE
DATE | 2015-11-19 |
FROM | Chris Knadle
|
SUBJECT | Re: [Hangout-NYLXS] permissions in Debian packages?
|
Paul Robert Marino: > Ive been creating a few debian packages for my job and Ive noticed > something alarming. > is setting the file permissions prior to packaging and or using a post > install script the only way to set permissions and ownership on files > in a debian package? > this strikes me as very strange to say the least, is there a better way?
Another way file permissions can be set during the build process is in the debian/rules file like this:
------------------------------------------------------- %: dh $-at-
override_dh_installinit: install -m 0755 $(CURDIR)/scripts/start.init $(CURDIR)/debian/thing.init dh_installinit -------------------------------------------------------
So in this case if what's being packaged is a daemon called 'thing', the above will copy and rename the "start.init" init script during the build to debian/thing.init with permissions -rwxr-xr-x whereby dh_installinit will pick it up and install it to the binary package.
Likewise you could call a script within the debian/rules file to change permissions on source files before the build. Unfortunately permissions isn't something that can be altered with a quilt patch.
-- Chris
-- Chris Knadle Chris.Knadle-at-coredump.us _______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/
|
|