incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1293477 - in /incubator/accumulo/branches/1.4: ./ bin/ src/packages/deb/accumulo-custom-conf/ src/packages/deb/accumulo-gc/ src/packages/deb/accumulo-logger/ src/packages/deb/accumulo-master/ src/packages/deb/accumulo-monitor/ src/packages...
Date Fri, 24 Feb 2012 23:24:12 GMT
Author: vines
Date: Fri Feb 24 23:24:11 2012
New Revision: 1293477

URL: http://svn.apache.org/viewvc?rev=1293477&view=rev
Log:
ACCUMULO-19 - provides three packages, and the templates for some more for the future. Accumulo
is the bare bones install, accumulo-native will introduce the code neccessary to build the
native libraries and build them, and accumulo-test imports all of the testing code under ACCUMULO_HOME/test.
There are control files for future files, but they are not developed, but I think they are
fairly straightforward. Everything installs to /usr/lib/accumulo, with symlinks for the conf
directory pointing to /etc/accumulo/conf (with all example files copied into that directory).
Additional symlinks are made from logs and walogs to /var/log/accumulo/log and walog respectively.
Remove leaves everything in /var/log/accumulo and /etc/accumulo/ intact. Purge will remove
them. Accumulo-native is tied directly to the accumulo version. I have nothing in place with
regard to upgrades and things like that, but I don't think that is necessary, at least for
now. 

The only changes made outside of the pom were to the accumulo and config.sh script, where
I introduced readlink -f to the input path to resolve symlinks. This is necessary for the
symlink from /usr/bin/accumulo to still work with the scripts.

The installation will also correct the paths for JAVA_HOME, ZOOKEEPER_HOME, and HADOOP_HOME
in the -env.sh scripts to the appropriate paths should the processes be installed automatically
from bigtop and the debian repositories. The user must still copy the configuration file they
want to the default name, but it will be preserved between installations provided there was
no purge.


Added:
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/control   (with
props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postrm
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/control   (with
props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo/conffile
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo/control   (with props)
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postinst
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postrm
Removed:
    incubator/accumulo/branches/1.4/src/packages/deb/accumulo.control/
Modified:
    incubator/accumulo/branches/1.4/bin/accumulo
    incubator/accumulo/branches/1.4/bin/config.sh
    incubator/accumulo/branches/1.4/pom.xml

Modified: incubator/accumulo/branches/1.4/bin/accumulo
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/bin/accumulo?rev=1293477&r1=1293476&r2=1293477&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/bin/accumulo (original)
+++ incubator/accumulo/branches/1.4/bin/accumulo Fri Feb 24 23:24:11 2012
@@ -16,7 +16,8 @@
 # limitations under the License.
 
 
-bin=`dirname "$0"`
+bin=`readlink -f "$0"`
+bin=`dirname "$bin"`
 bin=`cd "$bin"; pwd`
 
 . "$bin"/config.sh

Modified: incubator/accumulo/branches/1.4/bin/config.sh
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/bin/config.sh?rev=1293477&r1=1293476&r2=1293477&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/bin/config.sh (original)
+++ incubator/accumulo/branches/1.4/bin/config.sh Fri Feb 24 23:24:11 2012
@@ -15,8 +15,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-#copied below from hadoop-config.sh
-this="$0"
+this=`readlink -f "$0"`
 while [ -h "$this" ]; do
     ls=`ls -ld "$this"`
     link=`expr "$ls" : '.*-> \(.*\)$'`
@@ -59,7 +58,6 @@ then
       exit 1
    fi
    HADOOP_HOME=`dirname $HADOOP_HOME`
-   HADOOP_HOME=`dirname $HADOOP_HOME`
 fi
 export HADOOP_HOME
 

Modified: incubator/accumulo/branches/1.4/pom.xml
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/pom.xml?rev=1293477&r1=1293476&r2=1293477&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/pom.xml (original)
+++ incubator/accumulo/branches/1.4/pom.xml Fri Feb 24 23:24:11 2012
@@ -312,69 +312,166 @@
       <plugin>
         <artifactId>jdeb</artifactId>
         <groupId>org.vafer</groupId>
-        <version>0.8</version>
+        <version>0.10</version>
         <inherited>false</inherited>
-        <configuration>
-          <deb>${project.build.directory}/${project.artifactId}_${project.version}-${os.arch}.deb</deb>
-          <controlDir>src/packages/deb/accumulo.control</controlDir>
-          <installDir>/opt/accumulo/accumulo-${project-version}</installDir>
-          <dataSet>
-            <data>
-              <src>lib</src>
-              <type>directory</type>
-              <mapper>
-                <type>perm</type>
-                <prefix>/opt/accumulo/accumulo-${project.version}/lib</prefix>
-              </mapper>
-              <excludes>**/.svn/**</excludes>
-            </data>
-            <data>
-              <src>README</src>
-              <type>file</type>
-              <mapper>
-                <type>perm</type>
-              <prefix>/opt/accumulo/accumulo-${project.version}</prefix>
-              </mapper>
-            </data>
-            <data>
-              <src>docs</src>
-              <type>directory</type>
-              <mapper>
-                <type>perm</type>
-                <prefix>/opt/accumulo/accumulo-${project.version}/docs</prefix>
-              </mapper>
-              <excludes>**/.svn/**</excludes>
-            </data>
-            <data>
-              <src>test</src>
-              <type>directory</type>
-              <mapper>
-                <type>perm</type>
-                <prefix>/opt/accumulo/accumulo-${project.version}/test</prefix>
-              </mapper>
-              <excludes>**/.svn/**,**/walkers.txt,**/ingesters.txt,**/continuous-env.sh,**/*.pyc</excludes>
-            </data>
-            <data>
-              <src>bin</src>
-              <type>directory</type>
-              <mapper>
-                <type>perm</type>
-                <prefix>/opt/accumulo/accumulo-${project.version}/bin</prefix>
-                <filemode>755</filemode>
-              </mapper>
-              <excludes>**/.svn/**</excludes>
-            </data>
-            <data>
-              <src>conf</src>
-              <type>directory</type>
-              <mapper>
-                <type>perm</type>
-                <prefix>/opt/accumulo/accumulo-${project.version}/conf</prefix>
-              </mapper>
-              <excludes>**/.svn/**,**/accumulo-site.xml,**/accumulo-env.sh,**/accumulo-metrics.xml,**/test-*,**/slaves,**/masters,**/tracers,**/gc,**/monitor</excludes>
-            </data>
-          </dataSet>
-        </configuration>
+        <executions>
+          <execution>
+            <id>accumulo</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jdeb</goal>
+            </goals>
+            <configuration>
+              <deb>${project.build.directory}/${artifactId}_${project.version}.deb</deb>
+              <attach>false</attach>
+              <controlDir>src/packages/deb/accumulo</controlDir>
+              <installDir>/usr/lib/accumulo</installDir>
+              <dataSet>
+                <data>
+                  <src>lib</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/lib</prefix>
+                  </mapper>
+                  <excludes>**/.svn/**</excludes>
+                </data>
+                <data>
+                  <src>NOTICE</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                  <prefix>/usr/lib/accumulo</prefix>
+                  </mapper>
+                </data>
+                <data>
+                  <src>DISCLAIMER</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                  <prefix>/usr/lib/accumulo</prefix>
+                  </mapper>
+                </data>
+                <data>
+                  <src>NOTICE</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                  <prefix>/usr/lib/accumulo</prefix>
+                  </mapper>
+                </data>
+                <data>
+                  <src>CHANGES</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                  <prefix>/usr/lib/accumulo</prefix>
+                  </mapper>
+                </data>
+                <data>
+                  <src>README</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                  <prefix>/usr/lib/accumulo</prefix>
+                  </mapper>
+                </data>
+                <data>
+                  <src>docs</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/docs</prefix>
+                  </mapper>
+                  <excludes>**/.svn/**</excludes>
+                </data>
+                <data>
+                  <src>bin</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/bin</prefix>
+                    <filemode>755</filemode>
+                  </mapper>
+                  <excludes>**/.svn/**</excludes>
+                </data>
+                <data>
+                  <src>conf</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/conf</prefix>
+                  </mapper>
+                  <excludes>**/.svn/**,**/accumulo-site.xml,**/accumulo-env.sh,**/accumulo-metrics.xml,**/test-*,**/slaves,**/masters,**/tracers,**/gc,**/monitor</excludes>
+                </data>
+              </dataSet>
+            </configuration>
+          </execution>
+          <execution>
+            <id>accumulo-native</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jdeb</goal>
+            </goals>
+            <configuration>
+              <attach>false</attach>
+              <controlDir>src/packages/deb/accumulo-native</controlDir>
+              <installDir>/usr/lib/accumulo</installDir>
+              <deb>${project.build.directory}/${artifactId}-native_${project.version}-${os.arch}.deb</deb>
+              <dataSet>
+                <data>
+                  <src>src/server/src/main/c++</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/src/server/src/main/c++</prefix>
+                  </mapper>
+                  <excludes>**/.svn/**</excludes>
+                </data>
+                <data>
+                  <src>src/server/src/main/java/org/apache/accumulo/server/tabletserver/MLock.java</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/src/server/src/main/java/org/apache/accumulo/server/tabletserver/MLock.java</prefix>
+                  </mapper>
+                </data>
+                <data>
+                  <src>src/server/src/main/java/org/apache/accumulo/server/tabletserver/NativeMap.java</src>
+                  <type>file</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/src/server/src/main/java/org/apache/accumulo/server/tabletserver/NativeMap.java</prefix>
+                  </mapper>
+                </data>
+              </dataSet>
+            </configuration>
+          </execution>
+          <execution>
+            <id>accumulo-test</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jdeb</goal>
+            </goals>
+            <configuration>
+              <attach>false</attach>
+              <controlDir>src/packages/deb/accumulo-test</controlDir>
+              <installDir>/usr/lib/accumulo</installDir>
+              <deb>${project.build.directory}/${artifactId}-test_${project.version}-${os.arch}.deb</deb>
+              <dataSet>
+                <data>
+                  <src>test</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/usr/lib/accumulo/test</prefix>
+                  </mapper>
+                  <excludes>**/.svn/**,**/*.pyc</excludes>
+                </data>
+              </dataSet>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
     </plugins>
     <pluginManagement>

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/control Fri Feb
24 23:24:11 2012
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-custom-conf
+Provides: accumulo-config
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo
+Description: Configuration for Accumulo
+  This package sets up the configuration for all nodes

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-custom-conf/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-gc
+Section: misc
+Version: [[version]]
+Architecture: all
+Depends: accumulo-config
+Description: Sets a node to run as a garbage collector node
+  This package sets up the node to run as a garbage collector process
+

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-gc/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-logger
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo-config
+Description: Sets a node to run as a logger node
+  This package sets up the node to run as a logger process

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-logger/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-master
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo-config
+Description: Sets a node to run as a master node
+  This package sets up the node to run as a master process

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-master/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-monitor
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo-config
+Description: Sets a node to run as a monitor node
+  This package sets up the node to run as a monitor process

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-monitor/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-native
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: default-jdk, accumulo (=[[version]]), g++, g++-multilib
+Description: Native libraries for Accumulo- locks and InMemoryMap
+  This optional package contains native libraries that improve the performance of Accumulo
tservers.

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst Fri Feb 24 23:24:11
2012
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# postinst script for Apache Accumulo native libraries
+export JAVA_HOME=/usr/lib/jvm/default-java
+cd /usr/lib/accumulo/src/server/src/main/c++
+make
+

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postrm
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postrm?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postrm (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-native/postrm Fri Feb 24 23:24:11
2012
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# postinst script for Apache Accumulo native libraries
+rm -Rf /usr/lib/accumulo/src
+rm -Rf /usr/lib/accumulo/lib/native

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/control Fri Feb
24 23:24:11 2012
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-single-conf
+Provides: accumulo-config
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo
+Description: Basic single-node configuration for Accumulo
+  This package sets up the configuration for a single node with the default single node configuration

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-single-conf/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/control Fri Feb 24
23:24:11 2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-singleton
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo-master, accumulo-monitor, accumulo-gc
+Description: Sets a node to run as the primary node, with master, monitor, and garbage collector
+  This package sets up the node to run the master, monitor, and garbage collector processes

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-singleton/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-slave
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumullo-tserver, accumulo-logger
+Description: Sets a node to run as a slave node, with tserver and loggers
+  This package sets up the node to run the tserver and logger processes

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-slave/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-test
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo (=[[version]]), pssh, python
+Description: Testing code for running the various Accumulo tests
+  This optional package contains tests which are used for validating Accumulo functionality

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-test/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo-tserver
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: accumulo-config
+Description: Sets a node to run as a tserver node
+  This package sets up the node to run as a tserver process

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo-tserver/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo/conffile
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo/conffile?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo/conffile (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo/conffile Fri Feb 24 23:24:11
2012
@@ -0,0 +1,8 @@
+/etc/accumulo/conf/accumulo-site.xml
+/etc/accumulo/conf/accumulo-env.sh
+/etc/accumulo/conf/slaves
+/etc/accumulo/conf/masters
+/etc/accumulo/conf/loggers
+/etc/accumulo/conf/accumulo-metrics.xml
+/etc/accumulo/conf/tracers
+/etc/accumulo/conf/gc

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo/control
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo/control?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo/control (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo/control Fri Feb 24 23:24:11
2012
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+Source: Apache Accumulo
+Section: misc
+Priority: extra
+Maintainer: Apache Accumulo <accumulo-dev@incubator.apache.org>
+Homepage: http://incubator.apache.org/accumulo
+Package: accumulo
+Version: [[version]]
+Section: misc
+Architecture: all
+Depends: default-jre-headless, hadoop, hadoop-zookeeper, coreutils
+Recommends: accumulo-native
+Description: Accumulo is a large distributed structured store based on Google's BigTable
design.
+Distribution: development

Propchange: incubator/accumulo/branches/1.4/src/packages/deb/accumulo/control
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postinst
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postinst?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postinst (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postinst Fri Feb 24 23:24:11
2012
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# postinst script for Apache Accumulo
+ln -fs /usr/lib/accumulo/bin/accumulo /usr/bin/accumulo
+mkdir -p /etc/accumulo/conf
+mv -f /usr/lib/accumulo/conf/* /etc/accumulo/conf/
+rm -Rf /usr/lib/accumulo/conf
+ln -fs /etc/accumulo/conf /usr/lib/accumulo/conf 
+mkdir -p /var/log/accumulo/logs
+mkdir -p /var/log/accumulo/walogs
+ln -fs /var/log/accumulo/logs /usr/lib/accumulo/logs 
+ln -fs /var/log/accumulo/walogs /usr/lib/accumulo/walogs 
+
+for files in `ls /etc/accumulo/conf/accumulo-env.sh.*`; do
+  sed -i -e 's:/path/to/java:/usr/lib/jvm/default-java:' $files 
+  sed -i -e 's:/path/to/zookeeper:/usr/lib/zookeeper:' $files 
+  sed -i -e 's:/path/to/hadoop:/usr/lib/hadoop:' $files 
+done 

Added: incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postrm
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postrm?rev=1293477&view=auto
==============================================================================
--- incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postrm (added)
+++ incubator/accumulo/branches/1.4/src/packages/deb/accumulo/postrm Fri Feb 24 23:24:11 2012
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# postrm script for Apache Accumulo
+rm -f /usr/lib/accumulo/logs
+rm -f /usr/lib/accumulo/walogs
+rm -f /usr/lib/accumulo/conf
+rm -f /usr/bin/accumulo
+case "$1" in
+  purge)
+    rm -Rf /var/log/accumulo
+    rm -Rf /etc/accumulo
+  ;;
+  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+  ;;
+  *)
+    echo "postrm called with unknown argument \`$1'" >&2
+    exit 1
+  ;;
+esac
+
+exit 0



Mime
View raw message