على السبت 25 حزيران 2016 ‫16:35، كتب Carl Pupa:
> In that case I agree it doesn't really matter whether gridengine.default 
> is in examples or not.  I've attached a patch that simply change the 
> postinst script so that it takes the copy from 
> /usr/share/gridengine-common/ instead of /usr/share/doc/gridengine-common/.

This is close. Attached is what I had in mind as a complete solution. It
installs gridengine.default into /usr/share/gridengine-common/, does not
install it into /usr/share/doc/gridengine-common/examples/, and adjusts
the postinst script (like your patch did).

The debian/*examples and debian/*install files are used by
dh_installexamples(1) and dh_install(1), respectively, during the
package build. debhelper(7) has a list of similar commands.

Does this look good to you? I haven't tested it, but it looks ok to me.

Many thanks and regards
Afif


-- 
Afif Elghraoui | عفيف الغراوي
http://afif.ghraoui.name
diff --git a/debian/gridengine-common.examples b/debian/gridengine-common.examples
index 26bbb9f..b076ca9 100644
--- a/debian/gridengine-common.examples
+++ b/debian/gridengine-common.examples
@@ -1,4 +1,3 @@
 debian/tmp/usr/examples/jobs/*
-debian/gridengine.default
 debian/tmp/usr/pvm
 debian/tmp/usr/mpi
diff --git a/debian/gridengine-common.install b/debian/gridengine-common.install
index 8ce7ddf..e30ab25 100644
--- a/debian/gridengine-common.install
+++ b/debian/gridengine-common.install
@@ -3,6 +3,7 @@ debian/tmp/default-configuration	usr/share/gridengine
 debian/tmp/default-bootstrap	usr/share/gridengine
 debian/scripts     usr/share/gridengine
 debian/gridengine-wrapper       /usr/share/gridengine
+debian/gridengine.default	/usr/share/gridengine
 debian/tmp/usr/util		usr/share/gridengine
 debian/tmp/usr/mpi		usr/share/gridengine
 debian/tmp/usr/pvm		usr/share/gridengine
diff --git a/debian/gridengine-common.postinst b/debian/gridengine-common.postinst
index 8b986f9..ea3d071 100755
--- a/debian/gridengine-common.postinst
+++ b/debian/gridengine-common.postinst
@@ -54,7 +54,7 @@ case "$1" in
       TMPFILE=$(mktemp)
       chown root:root ${TMPFILE}
       chmod 644 ${TMPFILE}
-      sed "s@^SGE_CELL=.*@SGE_CELL=${SGE_CELL}@" /usr/share/doc/gridengine-common/examples/gridengine.default >> ${TMPFILE}
+      sed "s@^SGE_CELL=.*@SGE_CELL=${SGE_CELL}@" /usr/share/gridengine-common/gridengine.default >> ${TMPFILE}
       ucf --debconf-ok ${TMPFILE} /etc/default/gridengine
       rm -f ${TMPFILE}
     else

Reply via email to