Skip to content

Commit

Permalink
added barrier+ deps
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithDHedger committed Apr 10, 2021
1 parent acd3374 commit e891de6
Show file tree
Hide file tree
Showing 10 changed files with 215 additions and 2 deletions.
66 changes: 66 additions & 0 deletions LFSPkgBuildScripts/desktop/barrier/barrier.LFSBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/bin/bash -e

. /usr/share/LFSPkg/LFSFunctions

DEPENDS="avahi-0.8 gtest-1.10.0"
if ! lfspkg -B "$DEPENDS";then
exit 100
fi

PKGNAME="barrier"
TARNAME="$PKGNAME"
VERSION="2.1.2"
BUILD=1
SECTION="LFSTESTBUILDS"
SUFFIX="LFSPKG"
TARBALL="${TARNAME}-${VERSION}.tar.gz"
PKG="${OUTPUT}/${PKGNAME}"
DOWHAT=${1:-"build"}
CWD=$(pwd)

scriptLog "${PKGNAME}-${VERSION}"
gettar "https://github.com/debauchee/barrier/archive/refs/tags/v${VERSION}.tar.gz" $SECTION $TARBALL
rm -rf "$PKG" || true
mkdir -p "$PKG"

if [ $USESYSTEMD -eq 0 ];then
:
fi

pushd $COMPILEAT 2>/dev/null||true
extractarchive "${SOURCEARCHIVES}/${SECTION}/${TARBALL}"
pushd "${TARNAME}-${VERSION}"
mkdir build || true
cd build
cmake $CMAKEOPTIONS -DBARRIER_REVISION:STRING=00000000 ..
make $MAKEFLAGS||make|| exit 100
make install DESTDIR=$PKG || exit 100
mkdir -vp $PKG/usr/share/pixmaps || exit 100
cp ${CWD}/barrier.png $PKG/usr/share/pixmaps
popd

checketc "$PKG"
packageclean "$PKG" "$CWD"

pushd "$PKG"
lfspkg -n "$PKGNAME" -p "$VERSION" -d $SECTION -b $BUILD -s $SUFFIX -m
popd

case $DOWHAT in
up*)
lfspkg "^${PKGNAME}-[0-9][0-9]*" "${PKGARCHIVES}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -u
;;
"install")
lfspkg "${PKGARCHIVES}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -i
;;
"build")
echo "Just built"
;;
*)
echo "*** Unknown command ***"
exit 1
esac

rm -r "$PKG" "${TARNAME}-${VERSION}"
popd 2>/dev/null||true

Binary file added LFSPkgBuildScripts/desktop/barrier/barrier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions LFSPkgBuildScripts/devel/gtest/gtest.LFSBuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

PKGNAME="gtest"
TARNAME="$PKGNAME"
VERSION="1.8.0"
VERSION="1.10.0"
BUILD=${BUILD:-1}
SECTION="DEVEL"
SUFFIX="LFSPKG"
Expand All @@ -23,7 +23,7 @@ pushd $COMPILEAT 2>/dev/null||true
pushd "googletest-release-${VERSION}"
mkdir -p build||true
cd build
cmake $CMAKEINSTALLPREFIX $CMAKELIBDIRSUFFIX $CMAKEUSEQT5 $CMAKEPREFIXPATH -DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON -DCMAKE_BUILD_TYPE=Release ..
cmake $CMAKEOPTIONS -DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON ..
make $MAKEFLAGS||make|| exit 100
make install DESTDIR=$PKG || exit 100
popd
Expand Down
2 changes: 2 additions & 0 deletions LFSPkgBuildScripts/libs/libdaemon/info
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
http://www.linuxfromscratch.org/blfs/view/stable/general/libdaemon.html
The libdaemon package is a lightweight C library that eases the writing of UNIX daemons.
57 changes: 57 additions & 0 deletions LFSPkgBuildScripts/libs/libdaemon/libdaemon.LFSBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash -e

. /usr/share/LFSPkg/LFSFunctions

PKGNAME="libdaemon"
TARNAME="$PKGNAME"
VERSION="0.14"
BUILD=1
SECTION="LIBS"
SUFFIX="LFSPKG"
TARBALL="${TARNAME}-${VERSION}.tar.gz"
PKG="${OUTPUT}/${PKGNAME}"
DOWHAT=${1:-"build"}
CWD=$(pwd)

scriptLog "${PKGNAME}-${VERSION}"
gettar "http://0pointer.de/lennart/projects/${PKGNAME}/${TARBALL}" $SECTION
rm -rf "$PKG" || true
mkdir -p "$PKG"

if [ $USESYSTEMD -eq 0 ];then
:
fi

pushd $COMPILEAT 2>/dev/null||true
extractarchive "${SOURCEARCHIVES}/${SECTION}/${TARBALL}"
pushd "${TARNAME}-${VERSION}"
CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure ${CONFIGOPTIONS}
make $MAKEFLAGS||make|| exit 100
make install DESTDIR=$PKG || exit 100
popd

checketc "$PKG"
packageclean "$PKG" "$CWD"

pushd "$PKG"
lfspkg -n "$PKGNAME" -p "$VERSION" -d $SECTION -b $BUILD -s $SUFFIX -m
popd

case $DOWHAT in
up*)
lfspkg "^${PKGNAME}-[0-9][0-9]*" "${PKGARCHIVES}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -u
;;
"install")
lfspkg "${PKGARCHIVES}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -i
;;
"build")
echo "Just built"
;;
*)
echo "*** Unknown command ***"
exit 1
esac

rm -r "$PKG" "${TARNAME}-${VERSION}"
popd 2>/dev/null||true

5 changes: 5 additions & 0 deletions LFSPkgBuildScripts/libs/libdaemon/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
#©keithhedger Sat 10 Apr 15:56:55 BST 2021

. /usr/share/LFSPkg/LFSFunctions

5 changes: 5 additions & 0 deletions LFSPkgBuildScripts/libs/libdaemon/preinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
#©keithhedger Sat 10 Apr 15:56:55 BST 2021

. /usr/share/LFSPkg/LFSFunctions

64 changes: 64 additions & 0 deletions LFSPkgBuildScripts/net/avahi/avahi.LFSBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/bash -e

. /usr/share/LFSPkg/LFSFunctions

DEPENDS="libdaemon-0.14"
if ! lfspkg -B "$DEPENDS";then
exit 100
fi

PKGNAME="avahi"
TARNAME="$PKGNAME"
VERSION="0.8"
BUILD=1
SECTION="NET"
SUFFIX="LFSPKG"
TARBALL="${TARNAME}-${VERSION}.tar.gz"
PKG="${OUTPUT}/${PKGNAME}"
DOWHAT=${1:-"build"}
CWD=$(pwd)

scriptLog "${PKGNAME}-${VERSION}"
gettar "https://github.com/lathiat/avahi/releases/download/v0.8/${TARBALL}" $SECTION
gettar "http://www.linuxfromscratch.org/patches/blfs/10.1/avahi-0.8-ipv6_race_condition_fix-1.patch"
rm -rf "$PKG" || true
mkdir -p "$PKG"

if [ $USESYSTEMD -eq 0 ];then
SYSTEMDOPTS="--with-systemdsystemunitdir=no"
fi

pushd $COMPILEAT 2>/dev/null||true
extractarchive "${SOURCEARCHIVES}/${SECTION}/${TARBALL}"
pushd "${TARNAME}-${VERSION}"
patch -Np1 -i ../avahi-0.8-ipv6_race_condition_fix-1.patch
CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure ${CONFIGOPTIONS} --disable-libevent --disable-mono --disable-monodoc --disable-python --disable-qt3 --disable-qt4 --enable-core-docs --with-distro=none --enable-compat-libdns_sd $SYSTEMDOPTS
make $MAKEFLAGS||make|| exit 100
make install DESTDIR=$PKG || exit 100
popd

checketc "$PKG"
packageclean "$PKG" "$CWD"

pushd "$PKG"
lfspkg -n "$PKGNAME" -p "$VERSION" -d $SECTION -b $BUILD -s $SUFFIX -m
popd

case $DOWHAT in
up*)
lfspkg "^${PKGNAME}-[0-9][0-9]*" "${PKGARCHIVES}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -u
;;
"install")
lfspkg "${PKGARCHIVES}/${SECTION}/${PKGNAME}-${VERSION}-${BUILD}_${SECTION}_${SUFFIX}.tar.gz" -i
;;
"build")
echo "Just built"
;;
*)
echo "*** Unknown command ***"
exit 1
esac

rm -r "$PKG" "${TARNAME}-${VERSION}"
popd 2>/dev/null||true

2 changes: 2 additions & 0 deletions LFSPkgBuildScripts/net/avahi/info
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
http://www.linuxfromscratch.org/blfs/view/stable/basicnet/avahi.html
The Avahi package is a system which facilitates service discovery on a local network.
12 changes: 12 additions & 0 deletions LFSPkgBuildScripts/net/avahi/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
#©keithhedger Sat 10 Apr 15:48:43 BST 2021

. /usr/share/LFSPkg/LFSFunctions

UIDGIDPAIR=$(findnextpair "system")
useradd -c "Avahi Daemon Owner" -d /var/run/avahi-daemon -ru $UIDGIDPAIR -s /bin/false avahi||true

NEWGID=$(findnextgid "system")
groupadd -fg $NEWGID netdev||true


0 comments on commit e891de6

Please sign in to comment.