First packages and rules. Need verificatione
authorDennis Schafroth <dennis@indexdata.com>
Tue, 29 Jan 2013 16:12:31 +0000 (17:12 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Tue, 29 Jan 2013 16:12:31 +0000 (17:12 +0100)
12 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/lui-solr-master.postinst [new file with mode: 0644]
debian/masterkey-lui-solr-master-tomcat6.postinst [new file with mode: 0644]
debian/masterkey-lui-solr-slave-tomcat6.postinst [new file with mode: 0644]
debian/masterkey-lui-solr-slave.postinst [new file with mode: 0644]
debian/masterkey-lui-solr-tomcat6.debhelper.log [new file with mode: 0644]
debian/masterkey-lui-solr.debhelper.log [new file with mode: 0644]
debian/postinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..0e0f7d1
--- /dev/null
@@ -0,0 +1,6 @@
+masterkey-lui-solr (0.2.2-2) experimental; urgency=low
+
+  * Converted from .rpm format to .deb by alien version 8.87
+  
+
+ -- dennis <dennis@indexdata.com>  Tue, 29 Jan 2013 15:03:38 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..31893f2
--- /dev/null
@@ -0,0 +1,16 @@
+Source: masterkey-lui-solr
+Section: misc
+Priority: extra
+Maintainer: dennis <dennis@indexdata.com>
+
+Package: masterkey-lui-solr
+Architecture: all
+Depends: ${shlibs:Depends}
+Description: Local Unified Index (Solr)
+ The Local Unified Index is a index that contains multiple logical indexes (subdatabases). The underlying index is a Solr/lucene index configured to use a specific LUI schema.
+
+Package: masterkey-lui-solr-tomcat6
+Architecture: all
+Depends: ${shlibs:Depends}
+Description: Local Unified Index Solr Tomcat 6 integration
+The LUI is part of the MasterKey suite. This package provides Tomcat 6 integration.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..b5fb090
--- /dev/null
@@ -0,0 +1,26 @@
+This package was debianized by the alien program by converting
+a binary .rpm package on Tue, 29 Jan 2013 15:03:38 +0100
+
+Copyright: IndexData
+
+Information from the binary package:
+Name        : masterkey-lui-solr
+Version     : 0.2.2
+Release     : 1.indexdata
+Architecture: noarch
+Install Date: (not installed)
+Group       : Applications/Internet
+Size        : 7603954
+License     : IndexData
+Signature   : DSA/SHA1, Wed 02 Nov 2011 03:39:39 PM CET, Key ID 38e53a727f1d2347
+Source RPM  : masterkey-lui-solr-0.2.2-1.indexdata.src.rpm
+Build Date  : Wed 02 Nov 2011 03:35:41 PM CET
+Build Host  : centos5.index
+Relocations : (not relocatable)
+Packager    : Dennis Schafroth <dennis@indexdata.com>
+Vendor      : Index Data ApS <info@indexdata.dk>
+URL         : http://www.indexdata.dk/masterkey
+Summary     : Local Unified Index (Solr)
+Description :
+The Local Unified Index is a index that contains multiple logical indexes. The underlying index is a Solr/lucene index configured to use a specific LUI schema.
+
diff --git a/debian/lui-solr-master.postinst b/debian/lui-solr-master.postinst
new file mode 100644 (file)
index 0000000..18988bc
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+# alien added permissions fixup code
+chown -R 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/master'
diff --git a/debian/masterkey-lui-solr-master-tomcat6.postinst b/debian/masterkey-lui-solr-master-tomcat6.postinst
new file mode 100644 (file)
index 0000000..ded9117
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+# alien added permissions fixup code
+ln -sf /etc/masterkey/lui/lui-solr-master.xml /etc/tomcat6/Catalina/localhost/solr.xml
+
diff --git a/debian/masterkey-lui-solr-slave-tomcat6.postinst b/debian/masterkey-lui-solr-slave-tomcat6.postinst
new file mode 100644 (file)
index 0000000..30dbc16
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+# alien added permissions fixup code
+ln -sf /etc/masterkey/lui/lui-solr-slave.xml /etc/tomcat6/Catalina/localhost/lui-solr.xml
+
diff --git a/debian/masterkey-lui-solr-slave.postinst b/debian/masterkey-lui-solr-slave.postinst
new file mode 100644 (file)
index 0000000..7eb24f1
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+# alien added permissions fixup code
+chown -R 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/slave'
diff --git a/debian/masterkey-lui-solr-tomcat6.debhelper.log b/debian/masterkey-lui-solr-tomcat6.debhelper.log
new file mode 100644 (file)
index 0000000..8e81117
--- /dev/null
@@ -0,0 +1,3 @@
+dh_prep
+dh_prep
+dh_prep
diff --git a/debian/masterkey-lui-solr.debhelper.log b/debian/masterkey-lui-solr.debhelper.log
new file mode 100644 (file)
index 0000000..8e81117
--- /dev/null
@@ -0,0 +1,3 @@
+dh_prep
+dh_prep
+dh_prep
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..2db3d26
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+# alien added permissions fixup code
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/admin-extra.html'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/elevate.xml'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/mapping-ISOLatin1Accent.txt'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/protwords.txt'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/schema.xml'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/schema.xml.org'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/scripts.conf'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/solrconfig.xml'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/spellings.txt'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/stopwords.txt'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/synonyms.txt'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/xslt'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/xslt/example.xsl'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/xslt/example_atom.xsl'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/xslt/example_rss.xsl'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/conf/xslt/luke.xsl'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/war'
+chown 'tomcat:tomcat' '/usr/share/masterkey/lui/solr/war/apache-solr-3.3.0.war'
+chown 'tomcat:tomcat' '/var/lib/masterkey/lui/solr'
+chown 'tomcat:tomcat' '/var/lib/masterkey/lui/solr/data'
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..9ed8659
--- /dev/null
@@ -0,0 +1,102 @@
+#!/usr/bin/make -f
+# debian/rules for alien
+
+BASE=masterkey-lui-solr
+BASE_TOMCAT=$(BASE)-tomcat
+BASE_SLAVE=$(BASE)-slave
+BASE_SLAVE_TOMCAT=$(BASE_SLAVE)-tomcat
+
+DOC = /usr/share/doc/masterkey
+SHARE = /usr/share/masterkey
+LOG = /var/log/masterkey
+
+LUI_SOLR_COMMON = $(BASE)-common
+LUI_SOLR_COMMON_ROOT = $(CURDIR)/debian/$(LUI_SOLR_COMMON)
+LUI_SOLR_COMMON_DIR = $(LUI_SOLR_COMMON_ROOT)/usr/share/masterkey/lui/solr/war
+
+LUI_SOLR_MASTER = $(BASE)-master
+LUI_SOLR_MASTER_ROOT = $(CURDIR)/debian/$(LUI_SOLR_MASTER)
+LUI_SOLR_MASTER_SHARE_DIR = $(LUI_SOLR_MASTER_ROOT)/usr/share/masterkey/lui/solr/master
+LUI_SOLR_MASTER_LIB_DIR = $(LUI_SOLR_MASTER_ROOT)/var/lib/masterkey/lui/solr/master
+
+LUI_SOLR_MASTER_TOMCAT = $(LUI_SOLR_MASTER)-tomcat
+LUI_SOLR_MASTER_TOMCAT_ROOT = $(CURDIR)/debian/$(LUI_SOLR_MASTER_TOMCAT)
+
+LUI_SOLR_SLAVE = $(BASE)-slave
+LUI_SOLR_SLAVE_ROOT = $(CURDIR)/debian/$(LUI_SOLR_SLAVE)
+LUI_SOLR_SLAVE_SHARE_DIR = $(LUI_SOLR_SLAVE_ROOT)/usr/share/masterkey/lui/slave
+LUI_SOLR_SLAVE_LIB_DIR = $(LUI_SOLR_SLAVE_ROOT)/var/lib/masterkey/lui/slave
+
+LUI_SOLR_SLAVE_TOMCAT = $(LUI)-slave-tomcat
+LUI_SOLR_SLAVE_TOMCAT_ROOT = $(CURDIR)/debian/$(LUI_SLAVE_TOMCAT)
+#LUI_SOLR_SHARE = $(LUI_SLAVE_TOMCAT_ROOT)/usr/share/masterkey/$(LUI_SLAVE_TOMCAT)
+
+SOLR_VERSION=3.6.1
+
+PACKAGE=$(shell dh_listpackages)
+
+build:
+       dh_testdir
+
+clean:
+       dh_testdir
+       dh_testroot
+       dh_clean -d
+
+
+install: install-stamp
+install-stamp: build
+       dh_testdir
+       dh_testroot
+       dh_prep
+
+       # lui-solr-common. Install a Solr WAR.
+       mkdir -p $(LUI_SOLR_COMMON_DIR)
+       cp dist/apache-solr-$(SOLR_VERSION).war -d $(LUI_SOLR_COMMON_DIR)
+
+       # lui-solr-master
+       mkdir -p $(LUI_SOLR_MASTER_SHARE_DIR)
+       cp -r conf/. -d $(LUI_SOLR_MASTER_SHARE_DIR)
+       ln -sf $(LUI_SOLR_MASTER_SHARE_DIR)/lui-solrconfig-master.conf $(LUI_SOLR_MASTER_SHARE_DIR)/solrconfig.conf
+       mkdir -p $(LUI_SOLR_MASTER_LIB_DIR)
+
+       # lui-solr-slave Slave configuration
+       mkdir -p $(LUI_SOLR_SLAVE_SHARE_DIR)
+       cp -r conf/. -d $(LUI_SOLR_SLAVE_SHARE_DIR)
+       ln -sf $(LUI_SOLR_SLAVE_SHARE_DIR)/lui-solrconfig-master.conf $(LUI_SOLR_SLAVE_SHARE_DIR)/solrconfig.conf
+       mkdir -p $(LUI_SOLR_SLAVE_LIB_DIR)
+
+       # lui-solr-master plumbing for Tomcat 6. 
+       mkdir -p $(LUI_SOLR_MASTER_ROOT)/etc/masterkey/lui
+       cp etc/solr-tomcat-context.xml $(LUI_SOLR_MASTER_ROOT)/etc/masterkey/lui/lui-solr-master.xml
+#      mkdir -p $(TOMCAT6ROOT)/var/log/masterkey/lui
+
+       # lui-solr-slave plumbing for Tomcat 6
+       mkdir -p $(LUI_SOLR_SLAVE_ROOT)/etc/masterkey/lui
+       cp etc/solr-tomcat-context.xml $(LUI_SOLR_SLAVE_ROOT)/etc/masterkey/lui/lui-solr-slave.xml
+#      mkdir -p $(TOMCAT6ROOT)/var/log/masterkey/lui
+
+       touch $@
+
+binary: build install
+       dh_testdir
+       dh_testroot
+       dh_installdocs
+       dh_installchangelogs
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+# Copy the packages's files.
+#      find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
+#              xargs -0 -r -i cp -a {} debian/$(PACKAGE)
+#
+#
+# If you need to move files around in debian/$(PACKAGE) or do some
+# binary patching, do it here
+#
+
+.PHONY: build clean binary-indep binary-arch binary