neo4j-installer-rpm
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-installer-rpm</artifactId> <version>2.3.12</version> </dependency>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.neo4j</groupId> <artifactId>parent</artifactId> <version>2.3.12</version> <relativePath>../../..</relativePath> </parent> <properties> <neo4j.license>AGPL-3-header.txt</neo4j.license> <licensing.phase>none</licensing.phase> </properties> <artifactId>neo4j-installer-rpm</artifactId> <version>2.3.12</version> <packaging>pom</packaging> <name>Neo4j RPM Installers</name> <licenses> <license> <name>GNU Affero General Public License, Version 3</name> <url>http://www.gnu.org/licenses/agpl-3.0-standalone.html</url> <comments>The software ("Software") developed and owned by Network Engine for Objects in Lund AB (referred to in this notice as "Neo Technology") is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 to all third parties and that license is included below. However, if you have executed an End User Software License and Services Agreement or an OEM Software License and Support Services Agreement, or another commercial license agreement with Neo Technology or one of its affiliates (each, a "Commercial Agreement"), the terms of the license in such Commercial Agreement will supersede the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 and you may use the Software solely pursuant to the terms of the relevant Commercial Agreement. </comments> </license> </licenses> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> <executions> <execution> <id>rpm-specific-resources</id> <goals><goal>copy-resources</goal></goals> <phase>process-resources</phase> <configuration> <outputDirectory>${project.build.directory}/rpm-resources</outputDirectory> <delimiters> <delimiter>#{*}</delimiter> </delimiters> <resources> <resource> <directory>${project.parent.basedir}/src/main/resources</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> <version>2.1-alpha-3</version> <extensions>true</extensions> <executions> <execution> <id>rpm</id> <phase>package</phase> <goals> <goal>rpm</goal> </goals> </execution> </executions> <configuration> <requires> <require> java-1.7.0-openjdk </require> </requires> <mappings> <mapping> <configuration>noreplace</configuration> <sources> <source> <location>${project.build.directory}/neo4j-${edition}-${neo4j.version}/conf </location> </source> </sources> <directory>/etc/neo4j</directory> <recurseDirectories>true</recurseDirectories> </mapping> <mapping> <directory>/etc/neo4j/ssl</directory> <username>neo4j</username> <groupname>neo4j</groupname> </mapping> <mapping> <sources> <source> <location>${project.build.directory}/neo4j-${edition}-${neo4j.version}/bin </location> </source> <source> <location>${project.build.directory}/rpm-resources/neo4j</location> </source> </sources> <filemode>0755</filemode> <username>root</username> <groupname>root</groupname> <directory>/usr/share/neo4j/bin</directory> </mapping> <mapping> <directory>/var/lib/neo4j</directory> <filemode>0755</filemode> <username>neo4j</username> <groupname>neo4j</groupname> </mapping> <mapping> <directory>/var/log/neo4j</directory> <filemode>0755</filemode> <username>neo4j</username> <groupname>neo4j</groupname> </mapping> <mapping> <directory>/usr/share/neo4j/data/log</directory> <sources> <softlinkSource> <location>/var/log/neo4j</location> </softlinkSource> </sources> </mapping> <mapping> <sources> <source> <location>${project.build.directory}/neo4j-${edition}-${neo4j.version}/lib </location> </source> </sources> <directory>/usr/share/neo4j/lib</directory> <recurseDirectories>true</recurseDirectories> </mapping> <mapping> <recurseDirectories>true</recurseDirectories> <sources> <source> <location>${project.build.directory}/neo4j-${edition}-${neo4j.version}/plugins </location> </source> </sources> <directory>/usr/share/neo4j/plugins</directory> </mapping> <mapping> <recurseDirectories>true</recurseDirectories> <sources> <source> <location>${project.build.directory}/neo4j-${edition}-${neo4j.version}/system </location> </source> </sources> <directory>/usr/share/neo4j/system</directory> </mapping> <mapping> <directory>/usr/share/neo4j/conf</directory> <sources> <softlinkSource> <location>/etc/neo4j</location> </softlinkSource> </sources> </mapping> <mapping> <directory>/usr/share/neo4j/data</directory> <filemode>0755</filemode> <username>neo4j</username> <groupname>neo4j</groupname> </mapping> <mapping> <directory>/etc/sysconfig</directory> <sources> <source> <location>${project.build.directory}/rpm-resources/sysconfig</location> </source> </sources> </mapping> <mapping> <directory>/etc/init.d</directory> <directoryIncluded>false</directoryIncluded> <filemode>0744</filemode> <username>root</username> <groupname>root</groupname> <sources> <source> <location>${project.build.directory}/rpm-resources/init.d</location> </source> </sources> </mapping> </mappings> <name>${rpm.name}</name> <group>Applications/Databases</group> <targetVendor>redhat</targetVendor> <targetOS>Linux</targetOS> <copyright>GPLv3</copyright> <changelogFile>CHANGELOG</changelogFile> <preinstallScriptlet> <script> /usr/bin/getent group neo4j || /usr/sbin/groupadd -r neo4j /usr/bin/getent passwd neo4j || /usr/sbin/useradd -r -d /usr/share/neo4j -g neo4j -s /bin/false neo4j </script> </preinstallScriptlet> <preremoveScriptlet> <script> service neo4j stop || true </script> </preremoveScriptlet> <postremoveScriptlet> <script> /usr/bin/getent group neo4j > /dev/null 2>&1 && /usr/sbin/userdel neo4j </script> </postremoveScriptlet> </configuration> </plugin> </plugins> </pluginManagement> </build> <modules> <module>installer-rpm-community</module> <module>installer-rpm-advanced</module> <module>installer-rpm-enterprise</module> </modules> </project>