the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: nexus
Version: 1.9.2.4
Revision: 1
Description: Maven repository manager
Type: java(1.5)
License: GPL
Maintainer: Benjamin Reed
Depends: <<
daemonic,
system-java (>= 1.5-1)
<<
BuildDepends: fink (>= 0.30.2-1)
Source: http://%n.sonatype.org/downloads/%n-oss-webapp-%v-bundle.tar.gz
Source-MD5: 33e61c03bb3668fd4c8f8de97c9b0669
SourceDirectory: %n-oss-webapp-%v
PatchScript: sed -e 's,@FINKPREFIX@,%p,g' %{PatchFile} | patch -p1
PatchFile: %n.patch
PatchFile-MD5: d95bbe08712c4ef1346a9bc32b0472a1
UseMaxBuildJobs: true
CompileScript: echo "none needed"
InstallScript: <<
#!/bin/sh -ex
install -d -m 755 "%i/bin" "%i/etc" "%i/lib/nexus" "%i/var/log/nexus" "%i/var/run/nexus"
rsync -avr ./ %i/lib/nexus/
ln -sf "%p/lib/nexus/conf" "%i/etc/nexus"
ln -sf "%p/var/log/nexus" "%i/lib/nexus/logs"
rm -rf "%i/lib/nexus/logs"
cat <
#!/bin/sh
echo "- running nexus as 'nobody'"
sudo -u nobody "%p/lib/nexus/bin/jsw/macosx-universal-32/nexus" "\$@"
END
chmod 755 "%i/bin/nexus"
<<
DocFiles: *.txt
PostInstScript: <<
chown -R nobody "%p/var/log/nexus" "%p/var/run/nexus"
daemonic install %N
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
daemonic remove "%N" || true
"%p/bin/%N" stop || true
fi
<<
ConfFiles: <<
%p/lib/nexus/conf/classworlds.conf
%p/lib/nexus/conf/jetty.xml
%p/lib/nexus/conf/plexus.properties
%p/lib/nexus/conf/plexus.xml
%p/lib/nexus/bin/jsw/conf/wrapper.conf
%p/lib/nexus/runtime/apps/nexus/conf/ehcache.xml
%p/lib/nexus/runtime/apps/nexus/conf/log4j.properties
<<
DaemonicFile: <<
<<
Homepage: http://nexus.sonatype.org/
DescDetail: <<
Nexus manages software "artifacts" required for development, deployment, and
provisioning. If you develop software, Nexus can help you share those
artifacts with other developers and end-users.
Maven's central repository has always served as a great convenience for users
of Maven, but it has always been recommended to maintain your own repositories
to ensure stability within your organization. Nexus greatly simplifies the
maintenance of your own internal repositories and access to external
repositories. With Nexus you can completely control access to, and deployment
of, every artifact in your organization from a single location. Now you can
setup a Maven Repository in just minutes with Nexus.
<<
DescUsage: <<
To start the Nexus repository manager, just run "%p/bin/nexus start". It will
ask for your password so that it can run as the 'nobody' user.
Then, point your browser at:
http://localhost:8081/nexus
The default administrator user is "admin" with password "admin123".
<<
diff -Nurd nexus-oss-webapp-1.9.2.4/bin/jsw/conf/wrapper.conf nexus-oss-webapp-1.9.2.4-new/bin/jsw/conf/wrapper.conf
--- nexus-oss-webapp-1.9.2.4/bin/jsw/conf/wrapper.conf 2011-12-20 16:32:52.000000000 -0500
+++ nexus-oss-webapp-1.9.2.4-new/bin/jsw/conf/wrapper.conf 2011-12-22 12:32:14.000000000 -0500
@@ -22,14 +22,14 @@
wrapper.java.mainclass=org.codehaus.plexus.classworlds.launcher.Launcher
# The JVM classpath
-wrapper.java.classpath.1=bin/jsw/lib/wrapper-3.2.3.jar
-wrapper.java.classpath.2=./runtime/apps/nexus/lib/plexus-classworlds-*.jar
-wrapper.java.classpath.3=./conf/
+wrapper.java.classpath.1=@FINKPREFIX@/lib/nexus/bin/jsw/lib/wrapper-3.2.3.jar
+wrapper.java.classpath.2=@FINKPREFIX@/lib/nexus/runtime/apps/nexus/lib/plexus-classworlds-*.jar
+wrapper.java.classpath.3=@FINKPREFIX@/lib/nexus/conf/
# Additional JVM parameters (tune if needed, but match the sequence of numbers!)
wrapper.java.additional.1=-Dsun.net.inetaddr.ttl=3600
-wrapper.java.additional.2=-Dbasedir=.
-wrapper.java.additional.3=-Djava.io.tmpdir=./runtime/tmp
+wrapper.java.additional.2=-Dbasedir=@FINKPREFIX@/lib/nexus
+wrapper.java.additional.3=-Djava.io.tmpdir=/tmp/nexus
#wrapper.java.additional.4=-Xdebug
#wrapper.java.additional.5=-Xnoagent
#wrapper.java.additional.6=-Djava.compiler=NONE
@@ -53,7 +53,7 @@
wrapper.on_exit.12=RESTART
# Set up JSW logging
-wrapper.logfile=logs/wrapper.log
+wrapper.logfile=@FINKPREFIX@/var/log/nexus/wrapper.log
wrapper.logfile.format=PM
wrapper.logfile.loglevel=INFO
wrapper.logfile.maxsize=10m
@@ -119,6 +119,9 @@
# Application parameters. Add parameters as needed starting from 1
#wrapper.app.parameter.1=
+wrapper.java.pidfile=@FINKPREFIX@/var/run/nexus/wrapper-java.pid
+wrapper.pidfile=@FINKPREFIX@/var/run/nexus/wrapper.pid
+
# ********************************************************************
# Wrapper Logging Properties
# ********************************************************************
diff -Nurd nexus-oss-webapp-1.9.2.4/bin/jsw/macosx-universal-32/nexus nexus-oss-webapp-1.9.2.4-new/bin/jsw/macosx-universal-32/nexus
--- nexus-oss-webapp-1.9.2.4/bin/jsw/macosx-universal-32/nexus 2011-12-20 16:32:51.000000000 -0500
+++ nexus-oss-webapp-1.9.2.4-new/bin/jsw/macosx-universal-32/nexus 2011-12-22 12:28:21.000000000 -0500
@@ -23,7 +23,7 @@
PRIORITY=
# Location of the pid file.
-PIDDIR="."
+PIDDIR="@FINKPREFIX@/var/run/nexus"
# If uncommented, causes the Wrapper to be shutdown using an anchor file.
# When launched with the 'start' command, it will also ignore all INT and
diff -Nurd nexus-oss-webapp-1.9.2.4/bin/jsw/macosx-universal-64/nexus nexus-oss-webapp-1.9.2.4-new/bin/jsw/macosx-universal-64/nexus
--- nexus-oss-webapp-1.9.2.4/bin/jsw/macosx-universal-64/nexus 2011-12-20 16:32:52.000000000 -0500
+++ nexus-oss-webapp-1.9.2.4-new/bin/jsw/macosx-universal-64/nexus 2011-12-22 12:28:26.000000000 -0500
@@ -23,7 +23,7 @@
PRIORITY=
# Location of the pid file.
-PIDDIR="."
+PIDDIR="@FINKPREFIX@/var/run/nexus"
# If uncommented, causes the Wrapper to be shutdown using an anchor file.
# When launched with the 'start' command, it will also ignore all INT and
diff -Nurd nexus-oss-webapp-1.9.2.4/conf/plexus.properties nexus-oss-webapp-1.9.2.4-new/conf/plexus.properties
--- nexus-oss-webapp-1.9.2.4/conf/plexus.properties 2011-12-20 16:32:49.000000000 -0500
+++ nexus-oss-webapp-1.9.2.4-new/conf/plexus.properties 2011-12-22 12:29:02.000000000 -0500
@@ -2,13 +2,13 @@
application-host=0.0.0.0
runtime=${basedir}/runtime
apps=${runtime}/apps
-nexus-work=${basedir}/../sonatype-work/nexus
+nexus-work=@FINKPREFIX@/var/run/nexus
nexus-app=${runtime}/apps/nexus
webapp=${runtime}/apps/nexus/webapp
webapp-context-path=/nexus
security-xml-file=${nexus-work}/conf/security.xml
application-conf=${nexus-work}/conf
-runtime-tmp=${runtime}/tmp
+runtime-tmp=/tmp/nexus
# If this file is present, it will be used to configure Jetty.
jetty.xml=${basedir}/conf/jetty.xml