new packages: nfs-utils, libgssglue, rpcbind
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
shelltools.export("CFLAGS", "%s -fpie" % get.CFLAGS())
|
||||
shelltools.export("LDFLAGS", "%s -fpie" % get.LDFLAGS())
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-vfi")
|
||||
## glibc provides rpcinfo in /usr/sbin, so move it to /sbin, thus bindir=/sbin
|
||||
autotools.configure("--bindir=/usr/bin \
|
||||
--enable-warmstarts \
|
||||
--with-statedir=/var/lib/rpcbind \
|
||||
--with-rpcuser=rpc \
|
||||
--with-systemdsystemunitdir=no \
|
||||
--enable-libwrap")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodir("/var/lib/rpcbind")
|
||||
|
||||
# glibc has rpcinfo.8, so avoid conflict with glibc
|
||||
pisitools.insinto("/usr/share/man/man8", "man/rpcinfo.8", "rpcbind-rpcinfo.8")
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
|
||||
@@ -0,0 +1,33 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
from comar.service import *
|
||||
|
||||
serviceType = "server"
|
||||
serviceDesc = _({"en": "RPCbind Daemon",
|
||||
"tr": "RPCbind Servisi"})
|
||||
|
||||
serviceConf = "rpcbind"
|
||||
|
||||
PIDFILE = "/var/run/rpcbind.pid"
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
startService(command="/sbin/rpcbind",
|
||||
args="-f %s" % config.get("RPCBIND_OPTS"),
|
||||
makepid=True,
|
||||
detach=True,
|
||||
pidfile=PIDFILE,
|
||||
donotify=True)
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
stopService(pidfile=PIDFILE,
|
||||
donotify=True)
|
||||
|
||||
try:
|
||||
os.unlink(PIDFILE)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def status():
|
||||
return isServiceRunning(PIDFILE)
|
||||
@@ -0,0 +1,26 @@
|
||||
commit b3b031b07cc5909aaf964f9d4cf46f6097769320
|
||||
Author: Steve Dickson <steved@redhat.com>
|
||||
Date: Wed Aug 21 14:40:22 2013 -0400
|
||||
|
||||
rpcbind: rpcuser not being set in Makefile.am
|
||||
|
||||
Commit 8d7a0708 cause a regression where the rpcuser id was not
|
||||
being set, which in turn cause rpcbind to immediately exit.
|
||||
This patch removes the extra ',' that was in the AC_ARG_WITH
|
||||
statement in the configure.ac file.
|
||||
|
||||
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2b67720..1cf42d3 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -23,7 +23,7 @@ AC_ARG_WITH([statedir],
|
||||
AC_SUBST([statedir], [$with_statedir])
|
||||
|
||||
AC_ARG_WITH([rpcuser],
|
||||
- AS_HELP_STRING([--with-rpcuser=ARG], [use ARG for RPC @<:@default=root@:>@]),
|
||||
+ AS_HELP_STRING([--with-rpcuser=ARG], [use ARG for RPC @<:@default=root@:>@])
|
||||
,, [with_rpcuser=root])
|
||||
AC_SUBST([rpcuser], [$with_rpcuser])
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
Index: rpcbind-0.2.0/src/rpcbind.c
|
||||
===================================================================
|
||||
--- rpcbind-0.2.0.orig/src/rpcbind.c
|
||||
+++ rpcbind-0.2.0/src/rpcbind.c
|
||||
@@ -114,7 +114,7 @@ char *tcptrans; /* Name of TCP transpor
|
||||
char *udp_uaddr; /* Universal UDP address */
|
||||
char *tcp_uaddr; /* Universal TCP address */
|
||||
#endif
|
||||
-static char servname[] = "rpcbind";
|
||||
+static char servname[] = "sunrpc";
|
||||
static char superuser[] = "superuser";
|
||||
|
||||
int main __P((int, char *[]));
|
||||
Index: rpcbind-0.2.0/src/rpcinfo.c
|
||||
===================================================================
|
||||
--- rpcbind-0.2.0.orig/src/rpcinfo.c
|
||||
+++ rpcbind-0.2.0/src/rpcinfo.c
|
||||
@@ -632,7 +632,7 @@ get_inet_address (addr, host)
|
||||
{
|
||||
memset (&hints, 0, sizeof hints);
|
||||
hints.ai_family = AF_INET;
|
||||
- if ((error = getaddrinfo (host, "rpcbind", &hints, &res)) != 0 &&
|
||||
+ if ((error = getaddrinfo (host, "sunrpc", &hints, &res)) != 0 &&
|
||||
(error = getaddrinfo (host, "portmapper", &hints, &res)) != 0)
|
||||
{
|
||||
fprintf (stderr, "rpcinfo: %s: %s\n",
|
||||
@@ -0,0 +1,2 @@
|
||||
# RPCbind options
|
||||
RPCBIND_OPTS="-i"
|
||||
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>rpcbind</Name>
|
||||
<Homepage>http://nfsv4.bullopensource.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>service</IsA>
|
||||
<Summary>Universal Addresses to RPC Program Number Mapper</Summary>
|
||||
<Description>The rpcbind utility is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine.</Description>
|
||||
<Archive sha1sum="a6dad1d9454f42f2f25a92caba8d3d7bddf527e3" type="tarbz2">mirrors://sourceforge/rpcbind/1.2.6/rpcbind-1.2.6.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libtirpc-devel</Dependency>
|
||||
<Dependency>tcp-wrappers-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1"></Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>rpcbind</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libtirpc</Dependency>
|
||||
<Dependency>tcp-wrappers</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="executable">/usr/sbin/rpcbind</Path>
|
||||
<Path fileType="executable">/usr/bin/rpcinfo</Path>
|
||||
<Path fileType="data">/var/lib</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/rpcbind">rpcbind.sysconfig</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2022-03-11</Date>
|
||||
<Version>1.2.6</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>rpcbind</Name>
|
||||
<Summary xml:lang="tr">Evrensel adresleri RPC program numaralarına eşleştirici</Summary>
|
||||
<Description xml:lang="tr">RPCbind aracı, RPC program numaralarını DARPA protokolü port numaralarına çeviren bir sunucu yazılımıdır.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user