libtirpc: convert to new package format

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-10 06:27:25 +01:00
parent a677e7d248
commit a6a210e0ce
4 changed files with 15 additions and 65 deletions

View File

@ -1,34 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. config/options $1
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--disable-static \
--enable-shared \
--enable-gss \
--with-gnu-ld
make
$MAKEINSTALL

View File

@ -1,28 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
. config/options $1
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib
mkdir -p $INSTALL/etc
cp $PKG_BUILD/doc/etc_netconfig $INSTALL/etc/netconfig

View File

@ -23,12 +23,14 @@ PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://sourceforge.net/projects/libtirpc/" PKG_SITE="https://sourceforge.net/projects/libtirpc/"
PKG_URL="https://downloads.sourceforge.net/project/libtirpc/libtirpc/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_URL="https://downloads.sourceforge.net/project/libtirpc/libtirpc/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="libgssglue" PKG_DEPENDS_TARGET="libgssglue"
PKG_BUILD_DEPENDS="toolchain libgssglue" PKG_BUILD_DEPENDS_TARGET="toolchain libgssglue"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="network" PKG_SECTION="network"
PKG_SHORTDESC="libtirpc: Transport Independent RPC Library" PKG_SHORTDESC="libtirpc: Transport Independent RPC Library"
PKG_LONGDESC="Libtirpc is a port of Suns Transport-Independent RPC library to Linux. It's being developed by the Bull GNU/Linux NFSv4 project." PKG_LONGDESC="Libtirpc is a port of Suns Transport-Independent RPC library to Linux. It's being developed by the Bull GNU/Linux NFSv4 project."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes" PKG_AUTORECONF="yes"
PKG_CONFIGURE_OPTS_TARGET="--enable-gss --with-gnu-ld"

View File

@ -0,0 +1,10 @@
diff -Naur libtirpc-0.2.2/doc/Makefile.am libtirpc-0.2.2.patch/doc/Makefile.am
--- libtirpc-0.2.2/doc/Makefile.am 2011-05-02 14:10:40.000000000 +0200
+++ libtirpc-0.2.2.patch/doc/Makefile.am 2014-01-10 06:17:51.829113901 +0100
@@ -1,5 +1,5 @@
install: install-am
$(mkinstalldirs) $(DESTDIR)/$(sysconfdir)
- cp -p ./etc_netconfig $(DESTDIR)/$(sysconfdir)/netconfig
+ cp -p $(top_srcdir)/doc/etc_netconfig $(DESTDIR)/$(sysconfdir)/netconfig
chmod 0644 $(DESTDIR)/$(sysconfdir)/netconfig