summaryrefslogtreecommitdiff
path: root/crypttab
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-01-31 09:13:01 +0000
committerAaron Ball <nullspoon@iohq.net>2016-01-31 09:13:01 +0000
commit282ba14026bb162faaa159a0e290187408f68515 (patch)
tree618aba63052211c8d89bdf993bd7c1e3e27a8523 /crypttab
parentc4a62a8da09cc5915fb57640d35f5f2a0c366182 (diff)
downloadports-282ba14026bb162faaa159a0e290187408f68515.tar.gz
ports-282ba14026bb162faaa159a0e290187408f68515.tar.xz
crypttab:Initial commit
Diffstat (limited to 'crypttab')
-rw-r--r--crypttab/Pkgfile41
1 files changed, 41 insertions, 0 deletions
diff --git a/crypttab/Pkgfile b/crypttab/Pkgfile
new file mode 100644
index 0000000..e9472cf
--- /dev/null
+++ b/crypttab/Pkgfile
@@ -0,0 +1,41 @@
+# Description: Crypttab init script
+# URL: https://oper.io/src/?p=nullspoon/crypttab.git
+# Maintainer: Aaron Ball <nullspoon at oper dot io>
+# Depends on: cryptsetup
+
+name=crypttab
+version=master
+release=1
+source=()
+gitsource=https://oper.io/src/nullspoon/crypttab.git
+
+gitsetup() {
+ if [[ -d ${name} ]]; then
+ cd ${name}
+ git reset --hard
+ git pull ${gitsource}
+ else
+ git clone ${gitsource} ${name}
+ cd ${name}
+ fi
+
+ # Tagged versions
+ #git checkout v${version}
+
+ # Branches
+ git checkout ${version}
+}
+
+
+
+build() {
+ gitsetup
+
+ if [[ ! -d ${PKG}/etc/rc.d ]]; then
+ mkdir -p ${PKG}/etc/rc.d
+ fi
+ cp ${name} ${PKG}/etc/rc.d/${name}
+ chmod 755 ${PKG}/etc/rc.d/${name}
+}
+
+# vim: set ft=sh ts=2 et:

Generated by cgit