aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-03-12 21:37:11 +0300
committerCem Keylan <cem@ckyln.com>2021-03-12 21:37:11 +0300
commitaa27c454ea76eb2fe945edab437c735710290497 (patch)
treec283cc50a1bf1afbcfd15869bb3c69287c285aa5
parent475b9684e72914b8fd2ea7c991e2e809c8982651 (diff)
downloadrepository-aa27c454ea76eb2fe945edab437c735710290497.tar.gz
cpt: add new package at 5.1.2 [TESTING]
-rwxr-xr-xtesting/cpt/build9
-rw-r--r--testing/cpt/checksums3
-rw-r--r--testing/cpt/depends2
-rw-r--r--testing/cpt/files/cpt-base25
-rw-r--r--testing/cpt/files/news4
-rw-r--r--testing/cpt/message5
-rwxr-xr-xtesting/cpt/post-install13
-rw-r--r--testing/cpt/sources3
-rwxr-xr-xtesting/cpt/test2
-rw-r--r--testing/cpt/version1
10 files changed, 67 insertions, 0 deletions
diff --git a/testing/cpt/build b/testing/cpt/build
new file mode 100755
index 00000000..7c0d36f6
--- /dev/null
+++ b/testing/cpt/build
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+docs=$(./src/cpt-list --check texinfo yes no)
+make PREFIX=/usr "DOCS=$docs" DESTDIR="$1" install
+
+install -Dm644 cpt-base "$1/etc/cpt-base"
+install -Dm755 news "$1/usr/bin/cpt-news"
+
+install -Dm755 src/cpt "$1/usr/bin/cpt"
diff --git a/testing/cpt/checksums b/testing/cpt/checksums
new file mode 100644
index 00000000..73690d21
--- /dev/null
+++ b/testing/cpt/checksums
@@ -0,0 +1,3 @@
+abe3422fbb0ec6a071343ae10a1549b2c440e761517dae336ef0d703a7d8b638 cpt-6.0.0-rc1.tar.gz
+1f6d1470f254164898fc5a3ab5ddf1c57c873c3cfbfd0acb519a8f242265540a news
+e1401cff417a903e72355edf878ef946eb674a051cb2cfeda356863d21495e76 cpt-base
diff --git a/testing/cpt/depends b/testing/cpt/depends
new file mode 100644
index 00000000..a615eba9
--- /dev/null
+++ b/testing/cpt/depends
@@ -0,0 +1,2 @@
+curl
+rsync
diff --git a/testing/cpt/files/cpt-base b/testing/cpt/files/cpt-base
new file mode 100644
index 00000000..ad4d1dc7
--- /dev/null
+++ b/testing/cpt/files/cpt-base
@@ -0,0 +1,25 @@
+# This file defines the base packages of the system. You can add or remove
+# package names in order to redefine the base. This file will be used by
+# cpt-orphans and cpt-reset. If this file doesn't exist on /etc/cpt-base, both
+# of the tools will assume that there is no defined base, so use with caution.
+baselayout
+binutils
+byacc
+busybox
+bzip2
+ca-certificates
+curl
+flex
+gcc
+git
+rsync
+gzip
+cpt
+bearssl
+linux-headers
+m4
+make
+musl
+pkgconf
+xz
+zlib
diff --git a/testing/cpt/files/news b/testing/cpt/files/news
new file mode 100644
index 00000000..4c0dabfd
--- /dev/null
+++ b/testing/cpt/files/news
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+# Read news and announcements from Carbs Linux
+
+curl -sfL https://carbslinux.org/news/index.txt | ${PAGER:-less}
diff --git a/testing/cpt/message b/testing/cpt/message
new file mode 100644
index 00000000..271062b6
--- /dev/null
+++ b/testing/cpt/message
@@ -0,0 +1,5 @@
+NOTE
+
+ 'cpt-news' tool was added to see news about the distribution. Feel free to
+ check it out and give your feedback.
+
diff --git a/testing/cpt/post-install b/testing/cpt/post-install
new file mode 100755
index 00000000..7f98b4d9
--- /dev/null
+++ b/testing/cpt/post-install
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+grep -q '\.la$' "$CPT_ROOT/var/db/cpt/installed/"*/manifest || exit 0
+
+find "$CPT_ROOT/usr/lib" \
+ ! -type d \
+ -name '*.la' \
+ -exec rm -f -- {} +
+
+find "$CPT_ROOT/var/db/cpt/installed" \
+ ! -type d \
+ -name manifest \
+ -exec sed -i '/.*\.la$/d' {} +
diff --git a/testing/cpt/sources b/testing/cpt/sources
new file mode 100644
index 00000000..deb3264a
--- /dev/null
+++ b/testing/cpt/sources
@@ -0,0 +1,3 @@
+https://git.carbslinux.org/cpt/snapshot/cpt-6.0.0-rc1.tar.gz
+files/news
+files/cpt-base
diff --git a/testing/cpt/test b/testing/cpt/test
new file mode 100755
index 00000000..eb052596
--- /dev/null
+++ b/testing/cpt/test
@@ -0,0 +1,2 @@
+#!/bin/sh
+make test
diff --git a/testing/cpt/version b/testing/cpt/version
new file mode 100644
index 00000000..27b49972
--- /dev/null
+++ b/testing/cpt/version
@@ -0,0 +1 @@
+5.1.2 2