diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-05-30 17:19:38 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-05-30 17:23:36 +0200 |
commit | b0d2c2ccc915d9aaf2ec407a5b28051271300f47 (patch) | |
tree | 09cd132e6d2a30c4fd3f58e5e993a06d68fbe860 /unmaintained | |
parent | 94a2f27e4e9102ad2aa809602410d0a1ae0df705 (diff) | |
download | alpine_aports-b0d2c2ccc915d9aaf2ec407a5b28051271300f47.tar.bz2 alpine_aports-b0d2c2ccc915d9aaf2ec407a5b28051271300f47.tar.xz alpine_aports-b0d2c2ccc915d9aaf2ec407a5b28051271300f47.zip |
unmaintained/lizardfs: move from testing
Doesn't have a maintainer and still requires python2. Current git HEAD
has support for python3 [0]. Unfortunately, there hasn't been a new
release yet and upgrading to git HEAD will be a lot of work as various
file paths changed. I attempt such an upgrade but as I do not use the
software and the changes were too intrusive I decided against merging
them and moving this package to unmaintained instead [1].
If you use this software feel free to take over maintainership, update
it to a version which doesn't require python2, and put it back into
testing.
[0]: https://github.com/lizardfs/lizardfs/commit/10b4ab6c6ff791f3653f53d02beb52ee994c2f33
[1]: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/8591
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/lizardfs/677.patch | 22 | ||||
-rw-r--r-- | unmaintained/lizardfs/APKBUILD | 184 | ||||
-rw-r--r-- | unmaintained/lizardfs/lizardfs-cgiserv.initd | 10 | ||||
-rw-r--r-- | unmaintained/lizardfs/lizardfs-chunkserver.initd | 10 | ||||
-rw-r--r-- | unmaintained/lizardfs/lizardfs-master.initd | 9 | ||||
-rw-r--r-- | unmaintained/lizardfs/lizardfs-metalogger.initd | 9 | ||||
-rw-r--r-- | unmaintained/lizardfs/lizardfs.pre-install | 7 |
7 files changed, 251 insertions, 0 deletions
diff --git a/unmaintained/lizardfs/677.patch b/unmaintained/lizardfs/677.patch new file mode 100644 index 0000000000..d9386433f6 --- /dev/null +++ b/unmaintained/lizardfs/677.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | From a5e1cedf22509b88e402aabb96642c2216c6a3ce Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Dieter <jdieter@gmail.com> | ||
3 | Date: Thu, 15 Mar 2018 14:26:03 +0200 | ||
4 | Subject: [PATCH] Add missing header | ||
5 | |||
6 | Signed-off-by: Jonathan Dieter <jdieter@gmail.com> | ||
7 | --- | ||
8 | src/chunkserver/iostat.h | 1 + | ||
9 | 1 file changed, 1 insertion(+) | ||
10 | |||
11 | diff --git a/src/chunkserver/iostat.h b/src/chunkserver/iostat.h | ||
12 | index e1a50e97..09a04c67 100644 | ||
13 | --- a/src/chunkserver/iostat.h | ||
14 | +++ b/src/chunkserver/iostat.h | ||
15 | @@ -28,6 +28,7 @@ | ||
16 | #include <algorithm> | ||
17 | #include <unordered_map> | ||
18 | #include <vector> | ||
19 | +#include <sys/sysmacros.h> | ||
20 | |||
21 | #include <sys/stat.h> | ||
22 | #include <sys/types.h> | ||
diff --git a/unmaintained/lizardfs/APKBUILD b/unmaintained/lizardfs/APKBUILD new file mode 100644 index 0000000000..4edb713113 --- /dev/null +++ b/unmaintained/lizardfs/APKBUILD | |||
@@ -0,0 +1,184 @@ | |||
1 | # Contributor: | ||
2 | # Maintainer: | ||
3 | pkgname=lizardfs | ||
4 | pkgver=3.12.0 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="a highly reliable, scalable and efficient distributed file system" | ||
7 | url="https://github.com/lizardfs/lizardfs/" | ||
8 | arch="all" | ||
9 | license="GPL-3.0-only" | ||
10 | makedepends="boost-dev cmake fuse-dev zlib-dev asciidoc python2" | ||
11 | pkgusers="mfs" | ||
12 | pkggroups="mfs" | ||
13 | install="$pkgname.pre-install" | ||
14 | subpackages=" | ||
15 | $pkgname-doc | ||
16 | $pkgname-master | ||
17 | $pkgname-metalogger | ||
18 | $pkgname-chunkserver | ||
19 | $pkgname-tools | ||
20 | $pkgname-cgi | ||
21 | $pkgname-cgiserv | ||
22 | $pkgname-adm | ||
23 | $pkgname-bash-completion:bashcomp:noarch | ||
24 | " | ||
25 | source="lizardfs-$pkgver.tar.gz::https://github.com/lizardfs/lizardfs/archive/v$pkgver.tar.gz | ||
26 | lizardfs-cgiserv.initd | ||
27 | lizardfs-chunkserver.initd | ||
28 | lizardfs-master.initd | ||
29 | lizardfs-metalogger.initd | ||
30 | 677.patch | ||
31 | " | ||
32 | |||
33 | build() { | ||
34 | if [ "$CBUILD" != "$CHOST" ]; then | ||
35 | CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" | ||
36 | fi | ||
37 | cmake -B build \ | ||
38 | -DCMAKE_BUILD_TYPE=None \ | ||
39 | -DCMAKE_INSTALL_PREFIX=/ \ | ||
40 | -DENABLE_TESTS=NO \ | ||
41 | -DENABLE_DEBIAN_PATHS=YES \ | ||
42 | $CMAKE_CROSSOPTS . | ||
43 | make -C build | ||
44 | } | ||
45 | |||
46 | package() { | ||
47 | make -C build DESTDIR="$pkgdir" install | ||
48 | chown -R mfs:mfs "$pkgdir"/var/lib/mfs | ||
49 | for i in $source; do | ||
50 | case $i in | ||
51 | *.initd) | ||
52 | install -Dm755 "$srcdir"/$i \ | ||
53 | "$pkgdir"/etc/init.d/${i%.*} | ||
54 | ;; | ||
55 | esac | ||
56 | done | ||
57 | |||
58 | mkdir -p "$pkgdir"/usr/share/bash-completion | ||
59 | mv "$pkgdir"/etc/bash_completion.d "$pkgdir"/usr/share/bash-completion/completions | ||
60 | } | ||
61 | |||
62 | _mv_files() { | ||
63 | local i | ||
64 | for i in "$@"; do | ||
65 | case $i in | ||
66 | */*) mkdir -p "$subpkgdir"/${i%/*};; | ||
67 | *) mkdir -p "$subpkgdir";; | ||
68 | esac | ||
69 | mv "$pkgdir"/$i "$subpkgdir"/$i | ||
70 | done | ||
71 | } | ||
72 | |||
73 | master() { | ||
74 | pkgdesc="LizardFS master server" | ||
75 | depends="lizardfs=$pkgver-r$pkgrel" | ||
76 | cd "$pkgdir" | ||
77 | _mv_files \ | ||
78 | usr/sbin/mfsmaster \ | ||
79 | usr/sbin/mfsrestoremaster \ | ||
80 | usr/sbin/mfsmetadump \ | ||
81 | usr/sbin/mfsmetarestore \ | ||
82 | etc/mfs/mfsexports.cfg.dist \ | ||
83 | etc/mfs/mfstopology.cfg.dist \ | ||
84 | etc/mfs/mfsgoals.cfg.dist \ | ||
85 | etc/mfs/mfsmaster.cfg.dist \ | ||
86 | etc/mfs/globaliolimits.cfg.dist \ | ||
87 | var/lib/mfs/metadata.mfs.empty \ | ||
88 | etc/init.d/lizardfs-master | ||
89 | chown -R mfs:mfs "$subpkgdir"/var/lib/mfs | ||
90 | } | ||
91 | |||
92 | metalogger() { | ||
93 | pkgdesc="LizardFS metadata replication server" | ||
94 | depends="lizardfs=$pkgver-r$pkgrel" | ||
95 | cd "$pkgdir" | ||
96 | _mv_files \ | ||
97 | usr/sbin/mfsmetalogger \ | ||
98 | etc/mfs/mfsmetalogger.cfg.dist \ | ||
99 | etc/init.d/lizardfs-metalogger | ||
100 | } | ||
101 | |||
102 | chunkserver() { | ||
103 | pkgdesc="LizardFS data server" | ||
104 | depends="lizardfs=$pkgver-r$pkgrel" | ||
105 | cd "$pkgdir" | ||
106 | _mv_files \ | ||
107 | usr/sbin/mfschunkserver \ | ||
108 | etc/mfs/mfschunkserver.cfg.dist \ | ||
109 | etc/mfs/mfshdd.cfg.dist \ | ||
110 | etc/init.d/lizardfs-chunkserver | ||
111 | } | ||
112 | |||
113 | tools() { | ||
114 | pkgdesc="LizardFS tools" | ||
115 | depends="fuse" | ||
116 | cd "$pkgdir" | ||
117 | _mv_files \ | ||
118 | usr/bin/mfstools.sh \ | ||
119 | usr/bin/mfsmount \ | ||
120 | usr/bin/mfsappendchunks \ | ||
121 | usr/bin/mfscheckfile \ | ||
122 | usr/bin/mfsdeleattr \ | ||
123 | usr/bin/mfsdirinfo \ | ||
124 | usr/bin/mfsfileinfo \ | ||
125 | usr/bin/mfsfilerepair \ | ||
126 | usr/bin/mfsgeteattr \ | ||
127 | usr/bin/mfsgetgoal \ | ||
128 | usr/bin/mfsgettrashtime \ | ||
129 | usr/bin/mfsmakesnapshot \ | ||
130 | usr/bin/mfsrepquota \ | ||
131 | usr/bin/mfsrgetgoal \ | ||
132 | usr/bin/mfsrgettrashtime \ | ||
133 | usr/bin/mfsrsetgoal \ | ||
134 | usr/bin/mfsrsettrashtime \ | ||
135 | usr/bin/mfsseteattr \ | ||
136 | usr/bin/mfssetgoal \ | ||
137 | usr/bin/mfssetquota \ | ||
138 | usr/bin/mfssettrashtime \ | ||
139 | etc/mfs/mfsmount.cfg.dist \ | ||
140 | etc/mfs/iolimits.cfg.dist | ||
141 | |||
142 | } | ||
143 | |||
144 | cgi() { | ||
145 | pkgdesc="LizardFS CGI Monitor" | ||
146 | depends="python2" | ||
147 | cd "$pkgdir" | ||
148 | _mv_files \ | ||
149 | usr/share/mfscgi | ||
150 | } | ||
151 | |||
152 | cgiserv() { | ||
153 | pkgdesc="Simple CGI-capable HTTP server to run LizardFS CGI Monitor" | ||
154 | depends="$pkgname-cgi=$pkgver-r$pkgrel" | ||
155 | cd "$pkgdir" | ||
156 | _mv_files \ | ||
157 | usr/sbin/lizardfs-cgiserver \ | ||
158 | usr/sbin/mfscgiserv \ | ||
159 | etc/init.d/lizardfs-cgiserv | ||
160 | } | ||
161 | |||
162 | adm() { | ||
163 | pkgdesc="LizardFS administration utility" | ||
164 | depends="" | ||
165 | cd "$pkgdir" | ||
166 | _mv_files \ | ||
167 | usr/bin/lizardfs-admin \ | ||
168 | usr/bin/lizardfs-probe | ||
169 | } | ||
170 | |||
171 | bashcomp() { | ||
172 | depends="" | ||
173 | pkgdesc="Bash completions for $pkgname" | ||
174 | install_if="$pkgname=$pkgver-r$pkgrel bash-completion" | ||
175 | |||
176 | amove usr/share/bash-completion/completions | ||
177 | } | ||
178 | |||
179 | sha512sums="0136114266dfadcf8e2205bfd19f50ee201566958fba1dc97d4a238ed63ca91dc2cd6352f25d911f4410b0fbd59846f54206da773789d5b959c8c02bde5adf20 lizardfs-3.12.0.tar.gz | ||
180 | 2c78af05c2eeba866c25c58d996c64d16a590248660a362e29a52065af93c126c6eb3232c8cdbb797e60cca406608b77f29ce62717446b7c3d1a8d35e0a722d8 lizardfs-cgiserv.initd | ||
181 | f5de527f2c6f729d49c365cbac64d938d8f90de2c78ac2f4fdbb445532fbc6438ed7380b7963f70cfbf99d48282d7da6a8dbb3df9ae84ac7d2fcebda2ce308c8 lizardfs-chunkserver.initd | ||
182 | 6234131965bf52ef0bb859a50010b649b10b81786ff302f6ff65429d03026b32d0e1ad2daeab99dea4bd8cc94ac5aed75707d640adf33b4fb79e22185e77ac01 lizardfs-master.initd | ||
183 | 76951ecdbaa69cef0fc383bbc3d36b1eb00aced3c98750676ab159a44a9e50d29ebe188080a08a2a09df6c62f6899bb093cf94e9e3e1688826f5ff8dfdc0fa68 lizardfs-metalogger.initd | ||
184 | a565d1eb682934d47bcae7e0b3ce37a08fa0e28b732e965083a878f5e9e1e846b329643c8ab02bc0f74eac54881d5287c739df6df528b78ccfc388b76af5b8c8 677.patch" | ||
diff --git a/unmaintained/lizardfs/lizardfs-cgiserv.initd b/unmaintained/lizardfs/lizardfs-cgiserv.initd new file mode 100644 index 0000000000..8ee89ab728 --- /dev/null +++ b/unmaintained/lizardfs/lizardfs-cgiserv.initd | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/sbin/openrc-run | ||
2 | |||
3 | pidfile=/var/run/lizardfs-cgiserv.pid | ||
4 | command=/usr/sbin/lizardfs-cgiserver | ||
5 | |||
6 | |||
7 | depend() { | ||
8 | after net | ||
9 | } | ||
10 | |||
diff --git a/unmaintained/lizardfs/lizardfs-chunkserver.initd b/unmaintained/lizardfs/lizardfs-chunkserver.initd new file mode 100644 index 0000000000..abf97b77fe --- /dev/null +++ b/unmaintained/lizardfs/lizardfs-chunkserver.initd | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/sbin/openrc-run | ||
2 | |||
3 | command=/usr/sbin/mfschunkserver | ||
4 | |||
5 | depend() { | ||
6 | need syslog | ||
7 | after net | ||
8 | } | ||
9 | |||
10 | need syslog | ||
diff --git a/unmaintained/lizardfs/lizardfs-master.initd b/unmaintained/lizardfs/lizardfs-master.initd new file mode 100644 index 0000000000..9e2e29f4a0 --- /dev/null +++ b/unmaintained/lizardfs/lizardfs-master.initd | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/sbin/openrc-run | ||
2 | |||
3 | command=/usr/sbin/mfsmaster | ||
4 | |||
5 | depend() { | ||
6 | need syslog | ||
7 | after net | ||
8 | } | ||
9 | |||
diff --git a/unmaintained/lizardfs/lizardfs-metalogger.initd b/unmaintained/lizardfs/lizardfs-metalogger.initd new file mode 100644 index 0000000000..012d8836c9 --- /dev/null +++ b/unmaintained/lizardfs/lizardfs-metalogger.initd | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/sbin/openrc-run | ||
2 | |||
3 | command=/usr/sbin/mfsmetalogger | ||
4 | |||
5 | depend() { | ||
6 | need syslog | ||
7 | after net | ||
8 | } | ||
9 | |||
diff --git a/unmaintained/lizardfs/lizardfs.pre-install b/unmaintained/lizardfs/lizardfs.pre-install new file mode 100644 index 0000000000..83ce544575 --- /dev/null +++ b/unmaintained/lizardfs/lizardfs.pre-install | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | addgroup -S mfs 2>/dev/null | ||
4 | adduser -S -D -H -h /var/lib/mfs -s /sbin/nologin -G mfs -g mfs mfs \ | ||
5 | 2>/dev/null | ||
6 | |||
7 | exit 0 | ||