wok-undigest rev 1210
Add cryptpad
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 28 16:43:47 2016 +0100 (2016-12-28) |
parents | 3c0cc6bf8f2b |
children | 0535d384bf23 |
files | cryptpad/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cryptpad/receipt Wed Dec 28 16:43:47 2016 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cryptpad" 1.7 +VERSION="0.3.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="CryptPad is the zero knowledge realtime collaborative editor." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="AGPL3" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="https://cryptpad.fr/" 1.14 +WGET_URL="https://github.com/xwiki-labs/cryptpad/archive/$VERSION.tar.gz" 1.15 +CONFIG_FILES="/etc/cryptpad/config.js" 1.16 + 1.17 +DEPENDS="node" 1.18 + 1.19 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.20 +genpkg_rules() 1.21 +{ 1.22 + mkdir -p $fs/usr/lib/node_modules $fs/etc/cryptpad 1.23 + cp -a $src $fs/usr/lib/node_modules/cryptpad 1.24 + cp $src/config.js.dist $fs/etc/cryptpad/config.js 1.25 + ln -s /etc/cryptpad/config.js $fs/usr/lib/node_modules/cryptpad/ 1.26 +} 1.27 + 1.28 +post_install() 1.29 +{ 1.30 + chroot $1/ /bin/sh <<EOT 1.31 +cd /usr/lib/node_modules/cryptpad 1.32 +npm install 1.33 +#npm install -g bower 1.34 +#bower install 1.35 +#node ./server.js 1.36 +EOT 1.37 +}