pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import sailor



Module Name:	pkgsrc-wip
Committed By:	Nils Ratusznik <nils%NetBSD.org@localhost>
Pushed By:	nils
Date:		Mon Jan 18 18:57:34 2016 +0100
Changeset:	0b58dc2d5f84f7ed81bbf0db51d7acf41cdd4094

Modified Files:
	Makefile
Added Files:
	sailor/DESCR
	sailor/Makefile
	sailor/PLIST
	sailor/distinfo

Log Message:
Import sailor

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0b58dc2d5f84f7ed81bbf0db51d7acf41cdd4094

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile        |  1 +
 sailor/DESCR    |  6 ++++++
 sailor/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 sailor/PLIST    | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sailor/distinfo |  6 ++++++
 5 files changed, 114 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ee570d6..16bab59 100755
--- a/Makefile
+++ b/Makefile
@@ -3562,6 +3562,7 @@ SUBDIR+=	s3cmd
 SUBDIR+=	s3funnel
 SUBDIR+=	sabnzbdplus
 SUBDIR+=	safekeep
+SUBDIR+=	sailor
 SUBDIR+=	sais
 SUBDIR+=	sais-demo-data
 SUBDIR+=	samba
diff --git a/sailor/DESCR b/sailor/DESCR
new file mode 100644
index 0000000..e2a45bf
--- /dev/null
+++ b/sailor/DESCR
@@ -0,0 +1,6 @@
+Sailor is based on chroot and pkgin, it will create a chrooted environment
+containing only the needed pieces in order to install and / or run a service.
+Note that sailor's goal is not to provide bullet-proof security,
+chroot is definitely not a trustable isolator;
+instead, sailor is a really convenient way of trying / testing an evironment
+without compromising your workstation filesystem.
diff --git a/sailor/Makefile b/sailor/Makefile
new file mode 100644
index 0000000..24fa181
--- /dev/null
+++ b/sailor/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD$
+
+DISTNAME=	${GHCOMMIT}
+PKGNAME=	sailor-${VERSION}
+CATEGORIES=	misc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=NetBSDfr/sailor/archive/}
+
+MAINTAINER=	nils%NetBSD.org@localhost
+HOMEPAGE=	${MASTER_SITE_GITHUB:=NetBSDfr/sailor/}
+COMMENT=	Wannabe portable container system
+LICENSE=	modified-bsd
+
+VERSION=	0.2.20160118
+GHCOMMIT=	eff61afce095c2b8bac49503a34311afb37e5e9f
+DEPENDS=	pkgin>=0.9.3:../../pkgtools/pkgin
+DEPENDS=	rsync-[0-9]*:../../net/rsync
+DEPENDS=	pkg_tarup-[0-9]*:../../pkgtools/pkg_tarup
+
+NO_BUILD=		yes
+USE_LANGUAGES=		# none
+USE_TOOLS+=		sh:run sed:run sed:build awk:run curl:run
+EGDIR=			${PREFIX}/share/examples/sailor
+CONF_FILES=		${EGDIR}/empty.conf \
+			${PKG_SYSCONFDIR}/${PKGBASE}/empty.conf
+DOCDIR=			share/doc/sailor
+OWN_DIRS+=		${PKG_SYSCONFDIR}/${PKGBASE}
+INSTALLATION_DIRS+=	sbin ${EGDIR} share/sailor/include share/sailor/ships ${DOCDIR}
+AUTO_MKDIRS=		yes
+WRKSRC=			${WRKDIR}/sailor-${GHCOMMIT}
+
+SUBST_CLASSES+=		include
+SUBST_STAGE.include=	pre-configure
+SUBST_MESSAGE.include=	Substituting path includes.
+SUBST_FILES.include=	sailor.sh
+SUBST_SED.include=	-e "s|include=include|include=${PREFIX}/share/sailor/include|g"
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/sailor.sh ${DESTDIR}${PREFIX}/sbin/sailor
+	${INSTALL_DATA} ${WRKSRC}/include/*.sh ${DESTDIR}${PREFIX}/share/sailor/include/
+	${INSTALL_DATA} ${WRKSRC}/examples/*.conf ${DESTDIR}${EGDIR}
+	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/${DOCDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/${DOCDIR}
+	cd ${WRKSRC} && ${FIND} ./ships/ -type d -exec ${INSTALL_DATA_DIR} \
+		${DESTDIR}${PREFIX}/share/sailor/{} \;
+	cd ${WRKSRC} && ${FIND} ./ships/ \! -type d -exec ${INSTALL_DATA} {} \
+		${DESTDIR}${PREFIX}/share/sailor/{} \;
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sailor/PLIST b/sailor/PLIST
new file mode 100644
index 0000000..3f62da7
--- /dev/null
+++ b/sailor/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD$
+sbin/sailor
+share/doc/sailor/LICENSE
+share/doc/sailor/README.md
+share/examples/sailor/empty.conf
+share/examples/sailor/namp.conf
+share/examples/sailor/nginx.conf
+share/examples/sailor/nginxflaskapi.conf
+share/examples/sailor/nginxnode.conf
+share/examples/sailor/nginxphp.conf
+share/sailor/include/define.sh
+share/sailor/include/deps.sh
+share/sailor/include/helpers.sh
+share/sailor/include/mdns.sh
+share/sailor/include/platform.sh
+share/sailor/ships/common/Darwin/opt/pkg/etc/gnupg/pkgsrc.gpg
+share/sailor/ships/common/Darwin/opt/pkg/etc/pkg_install.conf
+share/sailor/ships/common/Darwin/opt/pkg/etc/pkgin/repositories.conf
+share/sailor/ships/common/Darwin/opt/pkg/share/gnupg/pkgsrc-security.gpg
+share/sailor/ships/common/NetBSD/etc/defaults/daily.conf
+share/sailor/ships/common/NetBSD/etc/defaults/monthly.conf
+share/sailor/ships/common/NetBSD/etc/defaults/pf.boot.conf
+share/sailor/ships/common/NetBSD/etc/defaults/rc.conf
+share/sailor/ships/common/NetBSD/etc/defaults/security.conf
+share/sailor/ships/common/NetBSD/etc/defaults/weekly.conf
+share/sailor/ships/common/NetBSD/etc/group
+share/sailor/ships/common/NetBSD/etc/master.passwd
+share/sailor/ships/common/NetBSD/etc/mk.conf
+share/sailor/ships/common/NetBSD/etc/nsswitch.conf
+share/sailor/ships/common/NetBSD/etc/passwd
+share/sailor/ships/common/NetBSD/etc/pwd.db
+share/sailor/ships/common/NetBSD/etc/resolv.conf
+share/sailor/ships/common/NetBSD/etc/spwd.db
+share/sailor/ships/common/all/etc/rc.conf
+share/sailor/ships/common/all/etc/rc.subr
+share/sailor/ships/namp/usr/pkg/etc/httpd/httpd.conf
+share/sailor/ships/nginx/usr/pkg/etc/nginx/nginx.conf
+share/sailor/ships/nginx/usr/pkg/etc/pkgin/repositories.conf
+share/sailor/ships/nginxflaskapi/PREFIX/etc/nginx/nginx.conf
+share/sailor/ships/nginxflaskapi/PREFIX/etc/nginx/sites/localhost
+share/sailor/ships/nginxflaskapi/var/flask/example.py
+share/sailor/ships/nginxnode/PREFIX/etc/nginx/nginx.conf
+share/sailor/ships/nginxnode/PREFIX/etc/nginx/sites/localhost
+share/sailor/ships/nginxnode/var/node/hello.js
+share/sailor/ships/nginxphp/PREFIX/etc/nginx/fastcgi_phpfpm
+share/sailor/ships/nginxphp/PREFIX/etc/nginx/global.conf
+share/sailor/ships/nginxphp/PREFIX/etc/nginx/logs.conf
+share/sailor/ships/nginxphp/PREFIX/etc/nginx/nginx.conf
+share/sailor/ships/nginxphp/PREFIX/etc/nginx/php.conf
+share/sailor/ships/nginxphp/PREFIX/etc/nginx/sites/localhost
+share/sailor/ships/nginxphp/PREFIX/etc/php-fpm.conf
+share/sailor/ships/nginxphp/PREFIX/etc/php.d/extensions.ini
+share/sailor/ships/nginxphp/var/www/php/index.php
diff --git a/sailor/distinfo b/sailor/distinfo
new file mode 100644
index 0000000..fcebd58
--- /dev/null
+++ b/sailor/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (eff61afce095c2b8bac49503a34311afb37e5e9f.tar.gz) = abc7229c7037c1bd1efa5ad0debd11252be8bde1
+RMD160 (eff61afce095c2b8bac49503a34311afb37e5e9f.tar.gz) = 3dd91f14d56c7da371cbdf4decaa8efaef85b1c0
+SHA512 (eff61afce095c2b8bac49503a34311afb37e5e9f.tar.gz) = a088bd0dea4ec752a7added9cdaf2429a10d7dc98f2bb8913b57d2221357969c27864acfd2707b3c6bd1179366cfee5bb4cc3878d473ae2b0284ab5303c072f2
+Size (eff61afce095c2b8bac49503a34311afb37e5e9f.tar.gz) = 61525 bytes


Home | Main Index | Thread Index | Old Index