diff options
author | Mark Felder <feld@FreeBSD.org> | 2014-07-30 13:07:22 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2014-07-30 13:07:22 +0000 |
commit | 1c7c233776462a5639f81f53bf7a293cc6e131a8 (patch) | |
tree | 61cd41b5cf0b3bb5f20460204fdb8e9ae8a5184d /mail/archiveopteryx-devel/files | |
parent | Clear up a dangling modifier. (diff) |
Copy archiveopteryx to -devel to make it easy to track development
progress.
Historically aox development is very reliable, but please be aware that
this port does not track stable releases.
Notes
Notes:
svn path=/head/; revision=363475
Diffstat (limited to 'mail/archiveopteryx-devel/files')
-rw-r--r-- | mail/archiveopteryx-devel/files/archiveopteryx.in | 70 | ||||
-rw-r--r-- | mail/archiveopteryx-devel/files/patch-Jamfile | 47 | ||||
-rw-r--r-- | mail/archiveopteryx-devel/files/patch-Jamsettings | 55 | ||||
-rw-r--r-- | mail/archiveopteryx-devel/files/patch-installer_Jamfile | 14 | ||||
-rw-r--r-- | mail/archiveopteryx-devel/files/patch-schema_Jamfile | 14 | ||||
-rw-r--r-- | mail/archiveopteryx-devel/files/patch-scripts_Jamfile | 14 | ||||
-rw-r--r-- | mail/archiveopteryx-devel/files/pkg-message.in | 23 |
7 files changed, 237 insertions, 0 deletions
diff --git a/mail/archiveopteryx-devel/files/archiveopteryx.in b/mail/archiveopteryx-devel/files/archiveopteryx.in new file mode 100644 index 000000000000..cd7b8e76ad65 --- /dev/null +++ b/mail/archiveopteryx-devel/files/archiveopteryx.in @@ -0,0 +1,70 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: archiveopteryx +# REQUIRE: login +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# archiveopteryx_enable (bool): Set to NO by default. +# Set it to YES to enable archiveopteryx. +# + +. /etc/rc.subr + +name=archiveopteryx +rcvar=archiveopteryx_enable + +load_rc_config $name + +archiveopteryx_enable=${archiveopteryx_enable:-"NO"} +pidfile=/var/run/${name}.pid +config_file=%%PREFIX%%/etc/archiveopteryx/archiveopteryx.conf +required_files=$config_file + +command=%%PREFIX%%/bin/aox +extra_commands=status +status_cmd="${command} show status" +start_cmd=do_start +start_precmd=do_prestart +stop_cmd=do_stop +restart_cmd=do_restart + +do_prestart() +{ + if [ ! -d /var/db/aox/jail ] ; then + install -d -o root -g wheel -m 001 /var/db/aox/jail + fi + + for i in /var/run/aox /var/db/aox/messages /var/db/aox/jail/var/run /var/db/aox/jail/messages ; do + if [ ! -d ${i} ] ; then + install -d -o aox -g aox ${i} ; + fi + done +} + +do_start() +{ + echo -n "Starting Archiveopteryx: " + ${command} start + echo "done." +} + +do_stop() +{ + echo -n "Stopping Archiveopteryx: " + ${command} stop + echo "done." +} + +do_restart() +{ + echo -n "Restarting Archiveopteryx: " + ${command} restart + echo "done." +} + +run_rc_command "$1" diff --git a/mail/archiveopteryx-devel/files/patch-Jamfile b/mail/archiveopteryx-devel/files/patch-Jamfile new file mode 100644 index 000000000000..ffece5428ecb --- /dev/null +++ b/mail/archiveopteryx-devel/files/patch-Jamfile @@ -0,0 +1,47 @@ +$FreeBSD$ + +--- Jamfile.orig 2013-11-27 03:31:12.000000000 -0600 ++++ Jamfile 2013-11-28 11:35:43.262503298 -0600 +@@ -47,10 +47,10 @@ + } + + +-Prepare $(INSTALLROOT)$(JAILDIR) ; +-Prepare $(INSTALLROOT)$(JAILDIR)/var/run ; +-Prepare $(INSTALLROOT)$(MESSAGEDIR) ; +-Prepare $(INSTALLROOT)$(PIDFILEDIR) ; ++#Prepare $(INSTALLROOT)$(JAILDIR) ; ++#Prepare $(INSTALLROOT)$(JAILDIR)/var/run ; ++#Prepare $(INSTALLROOT)$(MESSAGEDIR) ; ++#Prepare $(INSTALLROOT)$(PIDFILEDIR) ; + Prepare $(INSTALLROOT)$(CONFIGDIR) ; + Prepare $(INSTALLROOT)$(LIBDIR)/contrib ; + if ( $(LOGFILE:D) != "" && $(LOGFILE:D) != "syslog" ) { +@@ -59,14 +59,14 @@ + + + # if we make JAILDIR, we should chmod it so noone can read it: +-MODE on $(INSTALLROOT)$(JAILDIR) = 701 ; +-Chmod $(INSTALLROOT)$(JAILDIR) ; ++#MODE on $(INSTALLROOT)$(JAILDIR) = 701 ; ++#Chmod $(INSTALLROOT)$(JAILDIR) ; + + # if we make MESSAGEDIR, we should chmod it similarly. AOXUSER needs to + # be able to write to it, but we can't chown here, because the user may + # not exist yet. +-MODE on $(INSTALLROOT)$(MESSAGEDIR) = 700 ; +-Chmod $(INSTALLROOT)$(MESSAGEDIR) ; ++#MODE on $(INSTALLROOT)$(MESSAGEDIR) = 700 ; ++#Chmod $(INSTALLROOT)$(MESSAGEDIR) ; + + + actions Message { +@@ -90,7 +90,7 @@ + EOM + } + +-Message install ; ++#Message install ; + + + if $(BUILDDOC) { diff --git a/mail/archiveopteryx-devel/files/patch-Jamsettings b/mail/archiveopteryx-devel/files/patch-Jamsettings new file mode 100644 index 000000000000..f9113684a759 --- /dev/null +++ b/mail/archiveopteryx-devel/files/patch-Jamsettings @@ -0,0 +1,55 @@ +$FreeBSD$ + +--- Jamsettings.orig 2012-07-10 08:45:55.000000000 -0500 ++++ Jamsettings 2012-12-26 18:19:56.434350066 -0600 +@@ -12,7 +12,7 @@ + + # A convenient prefix used by most directory and file names,. + # +-PREFIX ?= /usr/local/archiveopteryx ; ++PREFIX ?= %%PREFIX%% ; + + # The directory for user and sysadmin tools + # +@@ -28,32 +28,34 @@ + + # Supporting files + # +-LIBDIR = $(PREFIX)/lib ; ++LIBDIR = $(PREFIX)/libexec/aox ; ++ ++LIBDATADIR = $(PREFIX)/libdata/aox ; + + # The startup/shutdown script's directory + # +-INITDIR = $(LIBDIR) ; ++INITDIR = $(PREFIX)/etc/rc.d ; + + # Where to write pid files for the servers + # +-PIDFILEDIR ?= $(PREFIX)/lib/pidfiles ; ++PIDFILEDIR ?= /var/run/aox ; + + # The servers chroot to an empty, unreadable jail directory at + # startup. + # +-JAILDIR = $(PREFIX)/jail ; ++JAILDIR = /var/db/aox/jail ; + + # This is the default message-copy-directory. + # +-MESSAGEDIR = $(JAILDIR)/messages ; ++MESSAGEDIR = /var/db/aox/messages ; + + # The directory where the configuration file is located. + # +-CONFIGDIR = $(PREFIX) ; ++CONFIGDIR = $(PREFIX)/etc/archiveopteryx ; + + # The directory where the README and other files are installed. + # +-READMEDIR = $(PREFIX) ; ++READMEDIR = $(PREFIX)/share/doc/archiveopteryx ; + + # The log file's default name. (This can be a file name or syslog/x, + # where x is a facility.) diff --git a/mail/archiveopteryx-devel/files/patch-installer_Jamfile b/mail/archiveopteryx-devel/files/patch-installer_Jamfile new file mode 100644 index 000000000000..4fa8d1a8bb37 --- /dev/null +++ b/mail/archiveopteryx-devel/files/patch-installer_Jamfile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- installer/Jamfile.orig ++++ installer/Jamfile +@@ -5,7 +5,7 @@ + Build installer : installer.cpp ; + + ObjectDefines installer.cpp : +- LIBDIR='\"$(LIBDIR)\"' ++ LIBDIR='\"$(LIBDATADIR)\"' + CONFIGDIR='\"$(CONFIGDIR)\"' + LOGFILE='\"$(LOGFILE)\"' + LOGFILEMODE='\"$(LOGFILEMODE)\"' diff --git a/mail/archiveopteryx-devel/files/patch-schema_Jamfile b/mail/archiveopteryx-devel/files/patch-schema_Jamfile new file mode 100644 index 000000000000..b5fb640c2a56 --- /dev/null +++ b/mail/archiveopteryx-devel/files/patch-schema_Jamfile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- schema/Jamfile.orig ++++ schema/Jamfile +@@ -9,7 +9,7 @@ + SEARCH on $(<) = $(SEARCH_SOURCE) ; + EngraveConfig $(e) : $(<) ; + +- InstallFile $(INSTALLROOT)$(LIBDIR) : $(e) ; ++ InstallFile $(INSTALLROOT)$(LIBDATADIR) : $(e) ; + } + + SchemaFile schema.pg ; diff --git a/mail/archiveopteryx-devel/files/patch-scripts_Jamfile b/mail/archiveopteryx-devel/files/patch-scripts_Jamfile new file mode 100644 index 000000000000..bdf3adf05fd8 --- /dev/null +++ b/mail/archiveopteryx-devel/files/patch-scripts_Jamfile @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- scripts/Jamfile.orig ++++ scripts/Jamfile +@@ -15,7 +15,7 @@ + } + + +-ShellScript archiveopteryx ; ++# ShellScript archiveopteryx ; + + + rule ContribScript { diff --git a/mail/archiveopteryx-devel/files/pkg-message.in b/mail/archiveopteryx-devel/files/pkg-message.in new file mode 100644 index 000000000000..c8f21fb325a2 --- /dev/null +++ b/mail/archiveopteryx-devel/files/pkg-message.in @@ -0,0 +1,23 @@ +******************************************************************************** + +Please install PostgreSQL client/server (databases/postgresqlXX-client +and databases/postgresqlXX-server) separately. The latest 9.x version +is recommended but any version newer than 9.1.0 should work. + +To set up the database and generate a configuration file, run +%%PREFIX%%/libexec/aox/installer as root. The new configuration file will be in +%%ETCDIR%%/archiveopteryx.conf. + +%%PREFIX%%/libexec/aox/installer -n shows what it would do, without making any +changes. (If you are just upgrading from an older version, +%%PREFIX%%/bin/aox upgrade schema may be enough. +%%PREFIX%%/bin/aox upgrade schema -n shows what it would do, without making +any changes.) + +The logfile is syslog/mail by default. + +If you have any problems, the FAQ is at +http://www.archiveopteryx.org/faq/ and you can always ask +info@aox.org for help. + +******************************************************************************** |