diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/tdb-addition/tdb-addition.SlackBuild | 19 | ||||
-rw-r--r-- | system/tdb-addition/tdb-addition.info | 2 |
2 files changed, 17 insertions, 4 deletions
diff --git a/system/tdb-addition/tdb-addition.SlackBuild b/system/tdb-addition/tdb-addition.SlackBuild index 766367e95e..db7ba0c06a 100644 --- a/system/tdb-addition/tdb-addition.SlackBuild +++ b/system/tdb-addition/tdb-addition.SlackBuild @@ -27,6 +27,7 @@ PRGNAM=tdb-addition VERSION=${VERSION:-1.2.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + SRCNAM=samba SRCVER=4.1.0 @@ -59,7 +60,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$SRCVER -tar xvf $CWD/$SRCNAM-$SRCVER.tar.?z* +tar xvf $CWD/$SRCNAM-$SRCVER.tar.?z* \ + $SRCNAM-$SRCVER/lib/tdb/include/tdb.h \ + $SRCNAM-$SRCVER/lib/tdb/tdb.pc.in # Install the missing header install -m 0644 -D $SRCNAM-$SRCVER/lib/tdb/include/tdb.h \ @@ -67,8 +70,18 @@ install -m 0644 -D $SRCNAM-$SRCVER/lib/tdb/include/tdb.h \ # Add the missing library link mkdir -p $PKG/usr/lib$LIBDIRSUFFIX -( cd $PKG/usr/lib$LIBDIRSUFFIX - ln -s libtdb.so.$VERSION libtdb.so ) +ln -s libtdb.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}/libtdb.so + +# Add the pkgconfig file +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig +sed $SRCNAM-$SRCVER/lib/tdb/tdb.pc.in \ + -e s,@prefix@,/usr, \ + -e s,@exec_prefix@,${prefix}, \ + -e s,@libdir@,${prefix}/lib${LIBDIRSUFFIX}, \ + -e s,@includedir@,${prefix}/include, \ + -e s,@PACKAGE_VERSION@,$VERSION, \ + -e s^@LIB_RPATH@^-Wl,-rpath,/usr/lib$LIBDIRSUFFIX^ \ + > $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/tdb.pc install -m 0644 -D $CWD/$PRGNAM.SlackBuild \ $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/system/tdb-addition/tdb-addition.info b/system/tdb-addition/tdb-addition.info index db3c9f35e7..7242fde007 100644 --- a/system/tdb-addition/tdb-addition.info +++ b/system/tdb-addition/tdb-addition.info @@ -1,7 +1,7 @@ PRGNAM="tdb-addition" VERSION="1.2.12" HOMEPAGE="https://tdb.samba.org/index.html" -DOWNLOAD="http://slackware.osuosl.org/slackware64-14.1/source/n/samba/samba-4.1.0.tar.xz" +DOWNLOAD="http://mirrors.slackware.com/slackware/slackware64-14.1/source/n/samba/samba-4.1.0.tar.xz" MD5SUM="17babe0f979011a603333cc3f5fc9d76" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |