From mboxrd@z Thu Jan  1 00:00:00 1970
From: Jonatan Schlag <jonatan.schlag@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH v2 1/2] new package libtirpc (dependency of rpcbind)
Date: Fri, 29 Apr 2016 15:12:20 +0200
Message-ID: <1461935541-825-1-git-send-email-jonatan.schlag@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6307235783735977152=="
List-Id: <development.lists.ipfire.org>

--===============6307235783735977152==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Signed-off-by: Jonatan Schlag <jonatan.schlag(a)ipfire.org>
---
 config/rootfiles/packages/libtirpc | 61 +++++++++++++++++++++++++++
 lfs/libtirpc                       | 84 ++++++++++++++++++++++++++++++++++++=
++
 make.sh                            |  1 +
 3 files changed, 146 insertions(+)
 create mode 100644 config/rootfiles/packages/libtirpc
 create mode 100644 lfs/libtirpc

diff --git a/config/rootfiles/packages/libtirpc b/config/rootfiles/packages/l=
ibtirpc
new file mode 100644
index 0000000..b103329
--- /dev/null
+++ b/config/rootfiles/packages/libtirpc
@@ -0,0 +1,61 @@
+etc/netconfig
+#usr/include/tirpc
+#usr/include/tirpc/netconfig.h
+#usr/include/tirpc/rpc
+#usr/include/tirpc/rpc/auth.h
+#usr/include/tirpc/rpc/auth_des.h
+#usr/include/tirpc/rpc/auth_unix.h
+#usr/include/tirpc/rpc/clnt.h
+#usr/include/tirpc/rpc/clnt_soc.h
+#usr/include/tirpc/rpc/clnt_stat.h
+#usr/include/tirpc/rpc/des.h
+#usr/include/tirpc/rpc/des_crypt.h
+#usr/include/tirpc/rpc/key_prot.h
+#usr/include/tirpc/rpc/nettype.h
+#usr/include/tirpc/rpc/pmap_clnt.h
+#usr/include/tirpc/rpc/pmap_prot.h
+#usr/include/tirpc/rpc/pmap_rmt.h
+#usr/include/tirpc/rpc/raw.h
+#usr/include/tirpc/rpc/rpc.h
+#usr/include/tirpc/rpc/rpc_com.h
+#usr/include/tirpc/rpc/rpc_msg.h
+#usr/include/tirpc/rpc/rpcb_clnt.h
+#usr/include/tirpc/rpc/rpcb_prot.h
+#usr/include/tirpc/rpc/rpcb_prot.x
+#usr/include/tirpc/rpc/rpcent.h
+#usr/include/tirpc/rpc/svc.h
+#usr/include/tirpc/rpc/svc_auth.h
+#usr/include/tirpc/rpc/svc_dg.h
+#usr/include/tirpc/rpc/svc_mt.h
+#usr/include/tirpc/rpc/svc_soc.h
+#usr/include/tirpc/rpc/types.h
+#usr/include/tirpc/rpc/xdr.h
+#usr/include/tirpc/rpcsvc
+#usr/include/tirpc/rpcsvc/crypt.h
+#usr/include/tirpc/rpcsvc/crypt.x
+#usr/lib/libtirpc.a
+#usr/lib/libtirpc.la
+usr/lib/libtirpc.so
+usr/lib/libtirpc.so.3
+usr/lib/libtirpc.so.3.0.0
+#usr/lib/pkgconfig/libtirpc.pc
+#usr/share/man/man3/bindresvport.3t
+#usr/share/man/man3/des_crypt.3t
+#usr/share/man/man3/getnetconfig.3t
+#usr/share/man/man3/getnetpath.3t
+#usr/share/man/man3/getrpcent.3t
+#usr/share/man/man3/getrpcport.3t
+#usr/share/man/man3/rpc.3t
+#usr/share/man/man3/rpc_clnt_auth.3t
+#usr/share/man/man3/rpc_clnt_calls.3t
+#usr/share/man/man3/rpc_clnt_create.3t
+#usr/share/man/man3/rpc_secure.3t
+#usr/share/man/man3/rpc_soc.3t
+#usr/share/man/man3/rpc_svc_calls.3t
+#usr/share/man/man3/rpc_svc_create.3t
+#usr/share/man/man3/rpc_svc_err.3t
+#usr/share/man/man3/rpc_svc_reg.3t
+#usr/share/man/man3/rpc_xdr.3t
+#usr/share/man/man3/rpcbind.3t
+#usr/share/man/man3/rtime.3t
+#usr/share/man/man5/netconfig.5
diff --git a/lfs/libtirpc b/lfs/libtirpc
new file mode 100644
index 0000000..770ffb0
--- /dev/null
+++ b/lfs/libtirpc
@@ -0,0 +1,84 @@
+############################################################################=
###
+#                                                                           =
  #
+# IPFire.org - A linux based firewall                                       =
  #
+# Copyright (C) 2016 IPFire Team  <info(a)ipfire.org>                       =
   #
+#                                                                           =
  #
+# This program 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 3 of the License, or         =
  #
+# (at your option) any later version.                                       =
  #
+#                                                                           =
  #
+# This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.     =
  #
+#                                                                           =
  #
+############################################################################=
###
+
+############################################################################=
###
+# Definitions
+############################################################################=
###
+
+include Config
+
+VER        =3D 1.0.1
+
+THISAPP    =3D libtirpc-$(VER)
+DL_FILE    =3D $(THISAPP).tar.bz2
+DL_FROM    =3D $(URL_IPFIRE)
+DIR_APP    =3D $(DIR_SRC)/$(THISAPP)
+TARGET     =3D $(DIR_INFO)/$(THISAPP)
+PROG       =3D libtirpc
+PAK_VER    =3D 1
+
+DEPS       =3D ""
+
+############################################################################=
###
+# Top-level Rules
+############################################################################=
###
+
+objects =3D $(DL_FILE)
+
+$(DL_FILE) =3D $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 =3D 36ce1c0ff80863bb0839d54aa0b94014
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist:
+	@$(PAK)
+
+############################################################################=
###
+# Downloading, checking, md5sum
+############################################################################=
###
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+	@$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+	@$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+	@$(MD5)
+
+############################################################################=
###
+# Installation Details
+############################################################################=
###
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+	@$(PREBUILD)
+	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+	cd $(DIR_APP) && ./configure --prefix=3D/usr --sysconfdir=3D/etc --disable-=
gssapi --disable-ipv6
+	cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
+	cd $(DIR_APP) && make install
+	@rm -rf $(DIR_APP)
+	@$(POSTBUILD)
diff --git a/make.sh b/make.sh
index 9e34f98..508c651 100755
--- a/make.sh
+++ b/make.sh
@@ -679,6 +679,7 @@ buildipfire() {
   ipfiremake tcpwrapper
   ipfiremake libevent
   ipfiremake libevent2
+  ipfiremake libtirpc
   ipfiremake portmap
   ipfiremake nfs
   ipfiremake gnu-netcat
--=20
2.1.4


--===============6307235783735977152==--