fixes
This commit is contained in:
1 parent
4e0462d190
commit
ddc0217fc8
11 files changed
+56
-122
No files matched your search
@@ -18,9 +18,9 @@ arch=('x86_64')
|
|||||||
cd $name-$version
|
cd $name-$version
|
||||||
setup(){
|
setup(){
|
||||||
meson setup build --prefix=/usr \
|
meson setup build --prefix=/usr \
|
||||||
--libdir=/usr/lib64/ \
|
--libdir=/usr/lib64/ \
|
||||||
-Ddocs=disabled \
|
-Ddocs=disabled \
|
||||||
-Dtest=disabled
|
-Dtest=disabled
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
|
|||||||
@@ -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'
|
email='bayramk@gmail.com'
|
||||||
maintainer='bk'
|
maintainer='bk'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
source=("https://github.com/kdave/btrfs-progs/archive/refs/tags/v6.3.tar.gz"
|
source=("https://github.com/kdave/btrfs-progs/archive/refs/tags/v6.3.tar.gz")
|
||||||
'initcpio-install-btrfs'
|
depends=(e2fsprogs zlib libgcrypt)
|
||||||
'initcpio-hook-btrfs'
|
|
||||||
'btrfs-scrub@.service'
|
|
||||||
'btrfs-scrub@.timer'
|
|
||||||
)
|
|
||||||
depends=( e2fsprogs zlib libgcrypt libzstd)
|
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('4806f9346f55cfbea44f9e423541e17c'
|
md5sums=('4806f9346f55cfbea44f9e423541e17c')
|
||||||
'SKIP'
|
|
||||||
'SKIP'
|
|
||||||
'SKIP'
|
|
||||||
'SKIP')
|
|
||||||
group=(sys.fs)
|
group=(sys.fs)
|
||||||
uses=()
|
uses=()
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@@ -28,25 +19,13 @@ install=btrfs-progs.install
|
|||||||
options=(!staticlibs)
|
options=(!staticlibs)
|
||||||
|
|
||||||
cd $name-$version
|
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(){
|
setup(){
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--libdir=/usr/lib64/ --with-crypto=libgcrypt \
|
--libdir=/usr/lib64/ --with-crypto=libgcrypt \
|
||||||
--disable-zstd \
|
--disable-zstd \
|
||||||
--disable-py3-sphinx
|
--disable-documentation
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
@@ -54,19 +33,8 @@ build(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
package(){
|
package(){
|
||||||
make DESTDIR="$DESTDIR" install install_python
|
make DESTDIR="$DESTDIR" install install_python
|
||||||
|
|
||||||
# install bash completion (FS#44618)
|
# install bash completion (FS#44618)
|
||||||
install -Dm644 btrfs-completion "$DESTDIR/usr/share/bash-completion/completions/btrfs"
|
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"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,8 +19,8 @@ cd $name-$version
|
|||||||
setup(){
|
setup(){
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--libdir=/usr/lib64/ \
|
--libdir=/usr/lib64/ \
|
||||||
--enable-compat-symlinks
|
--enable-compat-symlinks
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ arch=('x86_64')
|
|||||||
|
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
setup(){
|
setup(){
|
||||||
make configure
|
make configure
|
||||||
#export OPTIMIZER="-march=${CARCH/_/-} -O1"
|
./configure --prefix=/usr \
|
||||||
export DEBUG=-DNDEBUG
|
--libdir=/usr/lib64/ \
|
||||||
./configure --prefix=/usr --libdir=/usr/lib64/ --sbindir=/usr/bin
|
--sbindir=/usr/sbin
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,9 +30,7 @@ build(){
|
|||||||
|
|
||||||
package(){
|
package(){
|
||||||
# make install $jobs
|
# make install $jobs
|
||||||
make DIST_ROOT="${DESTDIR}" PKG_ROOT_SBIN_DIR="/usr/bin" install install-dev
|
make DIST_ROOT="${DESTDIR}" PKG_ROOT_SBIN_DIR="/usr/sbin" install install-dev
|
||||||
chown -R root "$DESTDIR"
|
|
||||||
chgrp -R root "$DESTDIR"
|
|
||||||
# add hack as we cannot set rootlibdir
|
# add hack as we cannot set rootlibdir
|
||||||
mv "${DESTDIR}"/lib64/libhandle.so* "${DESTDIR}/usr/lib64/"
|
mv "${DESTDIR}"/lib64/libhandle.so* "${DESTDIR}/usr/lib64/"
|
||||||
rm -rf "${DESTDIR}/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
|
||||||
|
}
|
||||||
|
|
||||||
+22
-11
@@ -7,10 +7,12 @@ description='A lightweight display manager'
|
|||||||
email='bayramk@gmail.com'
|
email='bayramk@gmail.com'
|
||||||
maintainer='bk'
|
maintainer='bk'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
source=("https://salsa.debian.org/xfce-extras-team/lightdm/-/archive/debian/$version-1/lightdm-debian-$version-1.tar.gz")
|
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)
|
"lightdm.initd")
|
||||||
makedepends=(gobject-introspection vala intltool)
|
depends=(libX11 pam libxklavier xorg-server libxcb glib libgcrypt libXdmcp xmodmap xrdb libXi)
|
||||||
md5sums=('2b845ca384f042f21b646a76c52345f0')
|
makedepends=(gobject-introspection vala intltool yelp-tools)
|
||||||
|
md5sums=('2b845ca384f042f21b646a76c52345f0'
|
||||||
|
'SKIP')
|
||||||
group=(x11.misc)
|
group=(x11.misc)
|
||||||
uses=()
|
uses=()
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
@@ -20,13 +22,14 @@ cd lightdm-debian-$version-1
|
|||||||
setup(){
|
setup(){
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--libdir=/usr/lib64/ \
|
--sysconfdir=/etc \
|
||||||
--disable-tests \
|
--libdir=/usr/lib64/ \
|
||||||
--disable-gtk-doc \
|
--disable-tests \
|
||||||
--enable-yelp-tools \
|
--disable-gtk-doc \
|
||||||
--enable-qt5-base \
|
--enable-yelp-tools \
|
||||||
--with-greeter-user=lightdm \
|
--enable-qt5-base \
|
||||||
--with-greeter-session=lightdm-gtk-greeter
|
--with-greeter-user=lightdm \
|
||||||
|
--with-greeter-session=lightdm-gtk-greeter
|
||||||
}
|
}
|
||||||
|
|
||||||
build(){
|
build(){
|
||||||
@@ -35,5 +38,13 @@ build(){
|
|||||||
|
|
||||||
package(){
|
package(){
|
||||||
make install $jobs
|
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