summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-01-31 02:07:05 +0000
committerAaron Ball <nullspoon@iohq.net>2016-01-31 02:07:05 +0000
commitd9826cea8d4f429dca2562d9b7c0993f0aea6f52 (patch)
treeee6fbbdefda0d9bbde6602666f7c61d871379d2e
parente6440449aa3145319c884c4c33dd685580abf97a (diff)
downloadports-d9826cea8d4f429dca2562d9b7c0993f0aea6f52.tar.gz
ports-d9826cea8d4f429dca2562d9b7c0993f0aea6f52.tar.xz
mkinitramfs:Fixed build
-rw-r--r--mkinitramfs/.footprint6
-rw-r--r--mkinitramfs/Pkgfile23
2 files changed, 22 insertions, 7 deletions
diff --git a/mkinitramfs/.footprint b/mkinitramfs/.footprint
new file mode 100644
index 0000000..7411ba9
--- /dev/null
+++ b/mkinitramfs/.footprint
@@ -0,0 +1,6 @@
+drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/
+drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/bin/
+drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/share/
+drwxr-xr-x 0 root root 0 Jan 31 02:06 usr/share/mkinitramfs/
+-rw-r--r-- 0 root root 3214 Jan 31 02:06 usr/share/mkinitramfs/init
+-rw-r--r-- 0 root root 3247 Jan 31 02:06 usr/bin/mkinitramfs
diff --git a/mkinitramfs/Pkgfile b/mkinitramfs/Pkgfile
index e01e022..a07c046 100644
--- a/mkinitramfs/Pkgfile
+++ b/mkinitramfs/Pkgfile
@@ -4,12 +4,12 @@
# Depends on: cryptsetup
name=mkinitramfs
-version=v1.0
+version=1.0
release=1
source=()
gitsource=https://oper.io/src/nullspoon/mkinitramfs.git
-build() {
+gitsetup() {
if [[ -d ${name} ]]; then
cd ${name}
git reset --hard
@@ -19,14 +19,23 @@ build() {
cd ${name}
fi
- git checkout ${version}
+ git checkout v${version}
+}
+
+
- cp mkinitramfs /usr/bin/
+build() {
+ gitsetup
+
+ if [[ ! -d ${PKG}/usr/bin ]]; then
+ mkdir -p ${PKG}/usr/bin
+ fi
+ cp mkinitramfs ${PKG}/usr/bin/
- if [[ ! -d /usr/share/mkinitramfs ]]; then
- mkdir /usr/share/mkinitramfs
+ if [[ ! -d ${PKG}/usr/share/mkinitramfs ]]; then
+ mkdir -p ${PKG}/usr/share/mkinitramfs
fi
- cp init /usr/share/mkinitramfs
+ cp init ${PKG}/usr/share/mkinitramfs/
}
# vim: set ft=sh ts=2 et:

Generated by cgit