diff options
| -rw-r--r-- | remote/tools/policykit-105/policykit.build | 51 | ||||
| -rw-r--r-- | remote/tools/policykit-105/policykit.conf | 7 |
2 files changed, 58 insertions, 0 deletions
diff --git a/remote/tools/policykit-105/policykit.build b/remote/tools/policykit-105/policykit.build new file mode 100644 index 00000000..fc1c8aa5 --- /dev/null +++ b/remote/tools/policykit-105/policykit.build @@ -0,0 +1,51 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () { + if [ ! -e .fetched_source ]; then + [ ! -d src ] && mkdir src + wget $URL + tar xfz $VERSION.tar.gz -C src/ + rm $VERSION.tar.gz + touch .fetched_source + fi +} + +install_dependencies() { + apt-get install -y $DEPS +} + +build () { + BUILDDIR=$TOOL_DIR/$TOOL/build + + if [ ! -e .built ]; then + cd src/$VERSION + SYSTEMD_LIBS="-L${TOOL_DIR}/systemd/build/usr/lib/" SYSTEMD_CFLAGS="-I${TOOL_DIR}/systemd/build/usr/include -I${TOOL_DIR}/systemd/build/usr/include/systemd -lsystemd-login -lsystemd-daemon" ./configure --enable-systemd=yes --prefix="/" --datarootdir="/usr/share" + + make + [ ! -d $BUILDDIR ] && mkdir -p $BUILDDIR + DESTDIR=$BUILDDIR make install + + COPYLIST="list_dpkg_output" + [ -e $COPYLIST ] && rm $COPYLIST + + for PACKAGE in ${REQUIRED_PACKAGES} + do + for FILE in $(dpkg -L ${PACKAGE} | grep -v share/doc | grep -v share/man) + do + [ ! -d $FILE ] && echo $FILE >> $COPYLIST + done + done + + # prepare target dir & copy there + [ ! -d $BUILDDIR ] && mkdir -p $BUILDDIR + tar -cpv $(cat $COPYLIST|sort -u) | tar -xpv -C $BUILDDIR + + cd - + touch .built + + fi +} + +post_copy() { + : +} diff --git a/remote/tools/policykit-105/policykit.conf b/remote/tools/policykit-105/policykit.conf new file mode 100644 index 00000000..b6f062ff --- /dev/null +++ b/remote/tools/policykit-105/policykit.conf @@ -0,0 +1,7 @@ +VERSION=polkit-0.105 +URL=http://www.freedesktop.org/software/polkit/releases/polkit-0.105.tar.gz +DEPS="libmozjs185-dev" +REQUIRED_PACKAGES="" +REQUIRED_BINARIES="" +REQUIRED_DIRECTORIES="/bin /etc /lib /libexec /usr/share/dbus-1 /usr/share/polkit-1" +REQUIRED_FILES="" |
