1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">
6 <groupId>org.wamblee.upnpmonitor</groupId>
7 <artifactId>root</artifactId>
8 <version>0.1-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <artifactId>wamblee-upnpmonitor</artifactId>
13 <packaging>rpm</packaging>
14 <name>/wamblee-upnpmonitor</name>
18 <groupId>org.wamblee.upnpmonitor</groupId>
19 <artifactId>monitor</artifactId>
20 <version>0.1-SNAPSHOT</version>
27 <groupId>org.codehaus.mojo</groupId>
28 <artifactId>rpm-maven-plugin</artifactId>
29 <version>2.1-alpha-1</version>
30 <extensions>true</extensions>
32 <changelogFile>CHANGELOG</changelogFile>
33 <copyright>Apache License 2.0, 2010</copyright>
34 <group>org.wamblee.server</group>
35 <packager>Erik Brakkee</packager>
39 <directory>/etc/init.d</directory>
40 <filemode>755</filemode>
41 <username>root</username>
42 <groupname>root</groupname>
45 <location>files/etc/init.d</location>
51 <directory>/opt/upnpmonitor/bin</directory>
52 <username>root</username>
53 <groupname>root</groupname>
54 <filemode>755</filemode>
57 <location>files/opt/upnpmonitor/bin</location>
63 <directory>/opt/upnpmonitor/lib</directory>
64 <filemode>755</filemode>
65 <username>root</username>
66 <groupname>root</groupname>
71 <directory>/etc/profile.d</directory>
72 <username>root</username>
73 <groupname>root</groupname>
76 <location>files/etc/profile.d</location>
82 <directory>/usr/share/doc/packages/wamblee-upnpmonitor</directory>
83 <username>root</username>
84 <groupname>root</groupname>
87 <location>files/usr/share/doc/packages/wamblee-upnpmonitor</location>
94 <provide>upnpmonitor</provide>
97 <require>java-1_6_0-sun-devel</require>
102 if grep '^java:' /etc/passwd > /dev/null
104 echo "User java already exists." 1>&2
106 /usr/sbin/useradd -m java
109 echo "Make sure that user java has login enabled!"
113 if [[ -r /etc/init.d/glassfish ]]
115 echo "This RPM does not support upgrade" 1>&2
120 </preinstallScriptlet>
124 /etc/init.d/upnpmonitor stop
125 /sbin/chkconfig upnpmonitor off
127 </preremoveScriptlet>