Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit a147a4619f5b8905326076e3953695fe3853067e @mamash mamash committed Mar 19, 2012
Showing 337 changed files with 18,286 additions and 0 deletions.
@@ -0,0 +1,4 @@
+GeoLite City is similar to the GeoIP City database, but is less accurate.
+Should you require greater accuracy, GeoIP City is a drop-in replacement
+for GeoLite City. GeoLite City is an ideal cost-effective solution, since
+it is as accurate as many other commercial geolocation solutions.
@@ -0,0 +1,34 @@
+# $NetBSD$
+#
+
+DISTNAME= GeoLiteCity.dat
+PKGNAME= ${DISTNAME:S/.dat//}-${VERSION}
+CATEGORIES= net
+MASTER_SITES= http://geolite.maxmind.com/download/geoip/database/
+EXTRACT_SUFX= .gz
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://geolite.maxmind.com/download/geoip/database/
+COMMENT= Free alternative for the GeoIP City database
+#LICENSE= # TODO: (see mk/license.mk)
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+VERSION!= date +%Y%m
+
+NO_CHECKSUM= yes
+
+DEPENDS+= GeoIP-[0-9]*:../../net/GeoIP
+
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}
+INSTALLATION_DIRS+= share/GeoIP
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME} ${DESTDIR}${PREFIX}/share/GeoIP
+ cd ${DESTDIR}${PREFIX}/share/GeoIP && ${LN} -s ${DISTNAME} GeoIPCity.dat
+ ${INSTALL_DATA} ${FILESDIR}/${DISTNAME:S/.dat//}.license ${DESTDIR}${PREFIX}/share/GeoIP
+
+USE_LANGUAGES= # none
+
+.include "../../mk/bsd.pkg.mk"
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+share/GeoIP/GeoIPCity.dat
+share/GeoIP/GeoLiteCity.dat
+share/GeoIP/GeoLiteCity.license
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (GeoLiteCity.dat.gz) = 99ad3495cf9d12544b3fe53d48a1435b300d97ff
+RMD160 (GeoLiteCity.dat.gz) = b7e49a5d95120949d450aa8b23312787250b40b4
+Size (GeoLiteCity.dat.gz) = 26285561 bytes
@@ -0,0 +1,31 @@
+OPEN DATA LICENSE (GeoLite Country and GeoLite City databases)
+
+Copyright (c) 2008 MaxMind, Inc. All Rights Reserved.
+
+All advertising materials and documentation mentioning features or use of
+this database must display the following acknowledgment:
+"This product includes GeoLite data created by MaxMind, available from
+http://maxmind.com/"
+
+Redistribution and use with or without modification, are permitted provided
+that the following conditions are met:
+1. Redistributions must retain the above copyright notice, this list of
+conditions and the following disclaimer in the documentation and/or other
+materials provided with the distribution.
+2. All advertising materials and documentation mentioning features or use of
+this database must display the following acknowledgement:
+"This product includes GeoLite data created by MaxMind, available from
+http://maxmind.com/"
+3. "MaxMind" may not be used to endorse or promote products derived from this
+database without specific prior written permission.
+
+THIS DATABASE IS PROVIDED BY MAXMIND, INC ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL MAXMIND BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+DATABASE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 README
@@ -0,0 +1,3 @@
+This repository holds miscelaneous packages that have been used by Joyent
+historically. Ideally all of them will be committed upstream, though
+in some cases that may turn out to be tricky.
No changes.
@@ -0,0 +1,24 @@
+# $NetBSD$
+#
+
+DISTNAME= cgipaf-1.3.3
+PKGNAME= ${DISTNAME:S/cgipaf/changepass/}
+CATEGORIES= sysutils
+MASTER_SITES= http://www.wagemakers.be/uploads/54/67/54679ae49d9c89c319e932a46da34745/
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://www.wagemakers.be/english/programs/cgipaf/changepass_manpage
+COMMENT= Simple tool to set user passwords non-interactively
+LICENSE= gnu-gpl-v3
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c
+GNU_CONFIGURE= yes
+AUTO_MKDIRS= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/changepass ${DESTDIR}${PREFIX}/sbin/
+ ${INSTALL_MAN} ${WRKSRC}/changepass.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/changepass.8
+
+.include "../../mk/bsd.pkg.mk"
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+sbin/changepass
+man/man8/changepass.8
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (cgipaf-1.3.3.tar.gz) = 8754cc418a7fccffc0a4fefaa78a776505a352a6
+RMD160 (cgipaf-1.3.3.tar.gz) = 18ee1e6291a824070c707fed73ac45d6ccd26a16
+Size (cgipaf-1.3.3.tar.gz) = 176974 bytes
@@ -0,0 +1,10 @@
+The enStratus agent is composed of a lightweight tomcat application used for
+communicating with the enStratus provisioning server and a set of associated
+shell scripts. The shell scripts are responsible for executing some actions
+on the server and are extensible by end users.
+
+The agent listens on port 2003 and takes action based on user input as in
+the case of adding a user to a system ( the addUser script) and also automates
+actions such as attaching, formatting, encrypting, and mounting volumes as
+part of a fully automated enStratus deployment. Communication to and from
+the enStratus provisioning server is encrypted.
@@ -0,0 +1,58 @@
+# $NetBSD$
+
+case ${STAGE} in
+POST-INSTALL)
+ chown -R @ENSTRATUS_USER@:@ENSTRATUS_USER@ @PREFIX@/enstratus
+ chmod 750 @PREFIX@/enstratus/bin
+ chmod 550 @PREFIX@/enstratus/bin/*
+ chmod 755 @PREFIX@/enstratus/custom/bin
+ chmod 750 @PREFIX@/enstratus/home
+ chmod 750 @PREFIX@/enstratus/cfg
+ chmod 640 @PREFIX@/enstratus/cfg/*
+ chmod 754 @PREFIX@/enstratus/ws/tomcat/bin/*.sh
+ chmod 750 @PREFIX@/enstratus/bin
+
+ chmod u+w @PREFIX@/etc/sudoers
+ echo "%enstratus ALL=(ALL) NOPASSWD: ALL" >> @PREFIX@/etc/sudoers
+ chmod u-w @PREFIX@/etc/sudoers
+
+ passwd -N @ENSTRATUS_USER@
+
+ cat >/tmp/.enstratus.xml <<EOF
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type="manifest" name="enstratus">
+ <service name="site/enstratus" type="service" version="1">
+ <create_default_instance enabled="false" />
+ <single_instance />
+ <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>
+ <method_context>
+ <method_credential user="@ENSTRATUS_USER@" group="@ENSTRATUS_USER@" />
+ </method_context>
+ <exec_method type="method" name="start" exec="@PREFIX@/enstratus/bin/enstratus-service start" timeout_seconds="600" />
+ <exec_method type="method" name="stop" exec="@PREFIX@/enstratus/bin/enstratus-service stop" timeout_seconds="6000" />
+ <property_group name="startd" type="framework">
+ <propval name="duration" type="astring" value="contract" />
+ <propval name="ignore_error" type="astring" value="core,signal" />
+ </property_group>
+ <stability value="Evolving" />
+ <template>
+ <common_name>
+ <loctext xml:lang="C">enStratus Tomcat server</loctext>
+ </common_name>
+ </template>
+ </service>
+</service_bundle>
+EOF
+
+ svccfg import /tmp/.enstratus.xml
+ rm /tmp/.enstratus.xml
+
+ svcadm enable enstratus
+ ;;
+esac
@@ -0,0 +1,69 @@
+# $NetBSD$
+#
+
+DISTNAME= enstratus-agent-smartos-v16
+PKGNAME= enstratus-agent-16
+CATEGORIES= sysutils
+MASTER_SITES= http://library.enstratus.com/
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://www.enstratus.com/
+COMMENT= enStratus agent
+#LICENSE= # TODO: (see mk/license.mk)
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/enstratus
+USE_LANGUAGES= # none
+USE_TOOLS+= bash:run
+NO_BUILD= yes
+
+.include "../../mk/java-vm.mk"
+
+BUILDLINK_DEPMETHOD.sun-jdk6= full
+
+DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
+DEPENDS+= findutils-[0-9]*:../../sysutils/findutils
+DEPENDS+= gmake-[0-9]*:../../devel/gmake
+DEPENDS+= gtar-base-[0-9]*:../../archivers/gtar-base
+DEPENDS+= less-[0-9]*:../../misc/less
+DEPENDS+= postfix-[0-9]*:../../mail/postfix
+DEPENDS+= sudo-[0-9]*:../../security/sudo
+DEPENDS+= unzip-[0-9]*:../../archivers/unzip
+DEPENDS+= zip-[0-9]*:../../archivers/zip
+
+ENSTRATUS_DIR?= ${VARBASE}/enstratus
+ENSTRATUS_USER?=enstratus
+
+PKG_GROUPS+= ${ENSTRATUS_USER}
+PKG_USERS+= ${ENSTRATUS_USER}:${ENSTRATUS_USER}
+PKG_GECOS.${ENSTRATUS_USER}= enStratus agent user
+PKG_HOME.${ENSTRATUS_USER}= ${PREFIX}/enstratus/home
+PKG_SHELL.${ENSTRATUS_USER}= ${BASH}
+
+OWN_DIRS+= ${PREFIX}/enstratus/home
+OWN_DIRS+= ${PREFIX}/enstratus/ws/tomcat/logs
+OWN_DIRS+= ${ENSTRATUS_DIR} ${ENSTRATUS_DIR}/tmp
+OWN_DIRS_PERMS+= ${ENSTRATUS_DIR} ${ENSTRATUS_USER} ${ENSTRATUS_USER} 0770
+OWN_DIRS_PERMS+= ${ENSTRATUS_DIR}/tmp ${ENSTRATUS_USER} ${ENSTRATUS_USER} 0770
+
+INSTALLATION_DIRS+= enstratus
+
+SUBST_CLASSES+= vars
+SUBST_STAGE.vars= post-patch
+SUBST_MESSAGE.vars= Setting variables
+SUBST_FILES.vars= bin/enstratus-service
+SUBST_SED.vars= -e 's,javaHome,${PKG_JAVA_HOME},'
+
+FILES_SUBST+= ENSTRATUS_USER=${ENSTRATUS_USER}
+
+post-extract:
+ ${CP} ${FILESDIR}/enstratus-webservices.cfg \
+ ${WRKSRC}/ws/content/WEB-INF/classes/
+
+do-install:
+ cd ${WRKSRC} && ${CP} -R * ${DESTDIR}${PREFIX}/enstratus/
+ ${RM} ${DESTDIR}${PREFIX}/enstratus/install.sh
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
Oops, something went wrong.

0 comments on commit a147a46

Please sign in to comment.