[med-svn] r19540 - trunk/packages/metastudent/trunk/debian

Andreas Tille tille at moszumanska.debian.org
Mon Jul 6 11:14:41 UTC 2015


Author: tille
Date: 2015-07-06 11:14:41 +0000 (Mon, 06 Jul 2015)
New Revision: 19540

Modified:
   trunk/packages/metastudent/trunk/debian/changelog
   trunk/packages/metastudent/trunk/debian/rules
Log:
Copy configuration file to /etc/metastudentrc that overrides default configuration to enable local user adjusting data path



Modified: trunk/packages/metastudent/trunk/debian/changelog
===================================================================
--- trunk/packages/metastudent/trunk/debian/changelog	2015-07-06 11:14:17 UTC (rev 19539)
+++ trunk/packages/metastudent/trunk/debian/changelog	2015-07-06 11:14:41 UTC (rev 19540)
@@ -1,3 +1,12 @@
+metastudent (2.0.1-2) UNRELEASED; urgency=medium
+
+  * Team upload
+  * change metastudent-data from Depends to Recommends
+  * Copy configuration file to /etc/metastudentrc that overrides default
+    configuration to enable local user adjusting data path
+
+ -- Andreas Tille <tille at debian.org>  Mon, 06 Jul 2015 12:20:51 +0200
+
 metastudent (2.0.1-1) unstable; urgency=low
 
   * Added Cellular Component Ontology

Modified: trunk/packages/metastudent/trunk/debian/rules
===================================================================
--- trunk/packages/metastudent/trunk/debian/rules	2015-07-06 11:14:17 UTC (rev 19539)
+++ trunk/packages/metastudent/trunk/debian/rules	2015-07-06 11:14:41 UTC (rev 19540)
@@ -3,6 +3,7 @@
 #export DH_VERBOSE=1
 
 JAVA_HOME=/usr/lib/jvm/default-java
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
 %:
 	dh $@ --with javahelper --with python2
@@ -14,7 +15,11 @@
 override_dh_auto_install:
 	dh_auto_install
 	find debian/metastudent -regex ".*/knn_weighted\|.*/CafaWrapper1\.pl\|.*/CafaWrapper2\.pl\|.*/CafaWrapper3\.pl\|.*/CafaWrapper3_new\.pl\|.*/exercise3\.pl\|.*/treehandler\.pl\|.*/validate\.pl" -exec chmod +x {} \;
-	mv *.jar $(CURDIR)/debian/metastudent/usr/share/metastudent/
+	mv *.jar $(CURDIR)/debian/$(DEBPKGNAME)/usr/share/metastudent/
+	# configuration files should reside in /etc
+	mkdir -p $(CURDIR)/debian/$(DEBPKGNAME)/etc
+	# accordint to manpage <sysconfdir>/metastudentrc overrides /usr/share/metastudent/metastudentrc.default
+	cp -a $(CURDIR)/debian/$(DEBPKGNAME)/usr/share/metastudent/metastudentrc.default $(CURDIR)/debian/$(DEBPKGNAME)/etc/metastudentrc
 
 # lkajan 20140106:
 # The jars in d/metastudent.jlibs are for use by this package only, and should not end up in /usr/share/java.




More information about the debian-med-commit mailing list