-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acd3374
commit e891de6
Showing
10 changed files
with
215 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|