diff options
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | debian/mongodb-smf.xml | 58 | ||||
-rwxr-xr-x | debian/rules | 6 |
3 files changed, 72 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 0b18a1e..e8d7ae2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +mongodb (1:2.0.6-1+dyson1) unstable; urgency=low + + * Built for Dyson + * Added SMF service + * Patched to link with libpcre + + -- Igor Pashev <pashev.igor@gmail.com> Fri, 15 Jun 2012 00:35:27 +0000 + mongodb (1:2.0.6-1) unstable; urgency=low * New upstream release 2.0.6 diff --git a/debian/mongodb-smf.xml b/debian/mongodb-smf.xml new file mode 100644 index 0000000..2cecf05 --- /dev/null +++ b/debian/mongodb-smf.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> +<service_bundle type="manifest" name="mongodb"> + + <service name="application/database/mongodb" type="service" version="1"> + + <dependency name="network" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/milestone/network:default"/> + </dependency> + + <dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/system/filesystem/local"/> + </dependency> + + <!-- Waiting for Bind9 :-) --> + <dependency name="named" grouping="optional_all" restart_on="none" type="service"> + <service_fmri value="svc:/application/network/named"/> + </dependency> + + + <instance name="default" enabled="false"> + + <method_context> + <method_credential user="mongodb" group="mongodb"/> + </method_context> + + <exec_method type="method" name="start" exec="/usr/bin/mongod -f %{config_file}" timeout_seconds="30"/> + + <exec_method type="method" name="stop" exec=":kill" timeout_seconds="30"/> + + <property_group name="startd" type="framework"> + <propval name="duration" type="astring" value="child"/> + <propval name="ignore_error" type="astring" value="core,signal"/> + </property_group> + + <property_group name="application" type="application"> + <propval name="config_file" type="astring" value="/etc/mongodb.conf"/> + </property_group> + + </instance> + + + + <stability value="Evolving"/> + + <template> + <common_name> + <loctext xml:lang="C">An object/document-oriented database</loctext> + </common_name> + <documentation> + <doc_link name="mongodb.org" uri="http://www.mongodb.org"/> + <manpage title="mongod" section="1"/> + </documentation> + </template> + + </service> + +</service_bundle> diff --git a/debian/rules b/debian/rules index 5c3fde3..ff006c1 100755 --- a/debian/rules +++ b/debian/rules @@ -22,6 +22,12 @@ DEB_SCONS_BUILD_TARGET = all DEB_SCONS_INSTALL_OPTIONS += --prefix=$(CURDIR)/debian/tmp/usr --full DEB_SCONS_CHECK_TARGET = --smokedbprefix=$(CURDIR)/debian/tmp-test smoke +install/mongodb-server:: +ifeq(illumos,$(DEB_HOST_ARCH_OS)) + mkdir -p debian/mongodb-server/lib/svc/manifest/application/database + cp debian/mongodb-smf.xml debian/mongodb-server/lib/svc/manifest/application/database/mongodb.xml +endif + clean:: find . -name "*.pyc" -delete rm -f buildinfo.cpp |