fixes
This commit is contained in:
1 parent
4e0462d190
commit
ddc0217fc8
9 files changed
+40
-106
No files matched your search
@@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
post_upgrade() {
|
||||
if (( "$(vercmp "$2" 0.19.20121005)" < 0 )); then
|
||||
echo 'btrfs multi-device support now relies on linux 3.6 or later'
|
||||
elif (( "$(vercmp "$2" 4.3.1-2)" < 0 )); then
|
||||
echo 'btrfs-scrub@.timer instance names must not be prefix by dash anymore'
|
||||
echo 'use btrfs-scrub@-.timer to scrub / monthly'
|
||||
echo ' btrfs-scrub@home.timer to scrub /home monthly.'
|
||||
fi
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
@@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Btrfs scrub on %f
|
||||
ConditionPathIsMountPoint=%f
|
||||
RequiresMountsFor=%f
|
||||
|
||||
[Service]
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/usr/bin/btrfs scrub start -B %f
|
||||
@@ -1,11 +0,0 @@
|
||||
[Unit]
|
||||
Description=Monthly Btrfs scrub on %f
|
||||
|
||||
[Timer]
|
||||
OnCalendar=monthly
|
||||
AccuracySec=1d
|
||||
RandomizedDelaySec=1w
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/usr/bin/ash
|
||||
|
||||
run_hook() {
|
||||
btrfs device scan
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
build() {
|
||||
add_module btrfs
|
||||
add_binary btrfs
|
||||
add_binary btrfsck
|
||||
add_runscript
|
||||
}
|
||||
|
||||
help() {
|
||||
cat <<HELPEOF
|
||||
This hook provides support for multi-device btrfs volumes. This hook
|
||||
is only needed for initramfs images which do not use udev.
|
||||
HELPEOF
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
@@ -7,19 +7,10 @@ description='A library for manipulating block devices'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://github.com/kdave/btrfs-progs/archive/refs/tags/v6.3.tar.gz"
|
||||
'initcpio-install-btrfs'
|
||||
'initcpio-hook-btrfs'
|
||||
'btrfs-scrub@.service'
|
||||
'btrfs-scrub@.timer'
|
||||
)
|
||||
depends=( e2fsprogs zlib libgcrypt libzstd)
|
||||
source=("https://github.com/kdave/btrfs-progs/archive/refs/tags/v6.3.tar.gz")
|
||||
depends=(e2fsprogs zlib libgcrypt)
|
||||
makedepends=()
|
||||
md5sums=('4806f9346f55cfbea44f9e423541e17c'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
md5sums=('4806f9346f55cfbea44f9e423541e17c')
|
||||
group=(sys.fs)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
@@ -28,25 +19,13 @@ install=btrfs-progs.install
|
||||
options=(!staticlibs)
|
||||
|
||||
cd $name-$version
|
||||
prepare() {
|
||||
# apply patch from the source array (should be a pacman feature)
|
||||
local src
|
||||
for src in "${source[@]}"; do
|
||||
src="${src%%::*}"
|
||||
src="${src##*/}"
|
||||
[[ $src = *.patch ]] || continue
|
||||
echo "Applying patch $src..."
|
||||
patch -Np1 < "../$src"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
setup(){
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/ --with-crypto=libgcrypt \
|
||||
--disable-zstd \
|
||||
--disable-py3-sphinx
|
||||
--disable-documentation
|
||||
}
|
||||
|
||||
build(){
|
||||
@@ -55,18 +34,7 @@ build(){
|
||||
|
||||
package(){
|
||||
make DESTDIR="$DESTDIR" install install_python
|
||||
|
||||
# install bash completion (FS#44618)
|
||||
install -Dm644 btrfs-completion "$DESTDIR/usr/share/bash-completion/completions/btrfs"
|
||||
|
||||
# install mkinitcpio hooks
|
||||
# cd "$srcdir"
|
||||
install -Dm644 ../initcpio-hook-btrfs "$DESTDIR/usr/lib/initcpio/hooks/btrfs"
|
||||
install -Dm644 ../initcpio-install-btrfs "$DESTDIR/usr/lib/initcpio/install/btrfs"
|
||||
|
||||
# install scrub service/timer
|
||||
install -Dm644 ../btrfs-scrub@.service "$DESTDIR/usr/lib/systemd/system/btrfs-scrub@.service"
|
||||
install -Dm644 ../btrfs-scrub@.timer "$DESTDIR/usr/lib/systemd/system/btrfs-scrub@.timer"
|
||||
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ arch=('x86_64')
|
||||
cd $name-$version
|
||||
setup(){
|
||||
make configure
|
||||
#export OPTIMIZER="-march=${CARCH/_/-} -O1"
|
||||
export DEBUG=-DNDEBUG
|
||||
./configure --prefix=/usr --libdir=/usr/lib64/ --sbindir=/usr/bin
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib64/ \
|
||||
--sbindir=/usr/sbin
|
||||
|
||||
}
|
||||
|
||||
@@ -30,9 +30,7 @@ build(){
|
||||
|
||||
package(){
|
||||
# make install $jobs
|
||||
make DIST_ROOT="${DESTDIR}" PKG_ROOT_SBIN_DIR="/usr/bin" install install-dev
|
||||
chown -R root "$DESTDIR"
|
||||
chgrp -R root "$DESTDIR"
|
||||
make DIST_ROOT="${DESTDIR}" PKG_ROOT_SBIN_DIR="/usr/sbin" install install-dev
|
||||
# add hack as we cannot set rootlibdir
|
||||
mv "${DESTDIR}"/lib64/libhandle.so* "${DESTDIR}/usr/lib64/"
|
||||
rm -rf "${DESTDIR}/lib64"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/sbin/openrc-run
|
||||
supervisor=supervise-daemon
|
||||
|
||||
name="Display Manager"
|
||||
description="Lightweight $name"
|
||||
|
||||
command=/usr/sbin/lightdm
|
||||
|
||||
depend() {
|
||||
provide display-manager
|
||||
need localmount dbus
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath --owner lightdm:lightdm --directory /var/lib/lightdm
|
||||
}
|
||||
|
||||
@@ -7,10 +7,12 @@ description='A lightweight display manager'
|
||||
email='bayramk@gmail.com'
|
||||
maintainer='bk'
|
||||
license=('GPLv3')
|
||||
source=("https://salsa.debian.org/xfce-extras-team/lightdm/-/archive/debian/$version-1/lightdm-debian-$version-1.tar.gz")
|
||||
depends=(libX11 pam libxklavier polkit xorg-server libxcb glib libgcrypt libXdmcp xmodmap xrdb yelp-tools libXi)
|
||||
makedepends=(gobject-introspection vala intltool)
|
||||
md5sums=('2b845ca384f042f21b646a76c52345f0')
|
||||
source=("https://salsa.debian.org/xfce-extras-team/lightdm/-/archive/debian/$version-1/lightdm-debian-$version-1.tar.gz"
|
||||
"lightdm.initd")
|
||||
depends=(libX11 pam libxklavier xorg-server libxcb glib libgcrypt libXdmcp xmodmap xrdb libXi)
|
||||
makedepends=(gobject-introspection vala intltool yelp-tools)
|
||||
md5sums=('2b845ca384f042f21b646a76c52345f0'
|
||||
'SKIP')
|
||||
group=(x11.misc)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
@@ -20,6 +22,7 @@ cd lightdm-debian-$version-1
|
||||
setup(){
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--libdir=/usr/lib64/ \
|
||||
--disable-tests \
|
||||
--disable-gtk-doc \
|
||||
@@ -35,5 +38,13 @@ build(){
|
||||
|
||||
package(){
|
||||
make install $jobs
|
||||
# create user and group
|
||||
mkdir -p $DESTDIR/etc/group.d
|
||||
mkdir -p $DESTDIR/etc/passwd.d
|
||||
echo "lightdm:x:108:118:Lightdm Display Manager:/var/lib/lightdm/:/bin/false" > $DESTDIR/etc/passwd.d/lightdm
|
||||
echo "lightdm:x:118:" > $DESTDIR/etc/group.d/lightdm
|
||||
# install service
|
||||
mkdir -p $DESTDIR/etc/init.d
|
||||
install ../lightdm.initd $DESTDIR/etc/init.d/lightdm
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user