xterm add repo
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/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 get
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
|
||||
def build():
|
||||
pisitools.dosed("Makefile", "INSTALL.*?STATICLIB", deleteLine=True)
|
||||
autotools.make('libdir="/usr/lib" libexecdir="/usr/libexec"')
|
||||
|
||||
def install():
|
||||
autotools.rawInstall('DESTDIR="%s" libdir="/usr/lib" libexecdir="/usr/libexec"' % get.installDIR())
|
||||
|
||||
pisitools.dodoc("COPYING", "README")
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
|
||||
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
|
||||
|
||||
ugstr = "root:utmp"
|
||||
|
||||
os.spawnvp(os.P_NOWAIT, "/bin/chown", ["/bin/chown", ugstr, "/usr/sbin/utempter"])
|
||||
os.spawnvp(os.P_NOWAIT, "/bin/chmod", ["/bin/chmod", "2775", "/usr/sbin/utempter"])
|
||||
|
||||
for file in ["/var/log/wtmp", "/run/utmp"]:
|
||||
if os.path.exists(file):
|
||||
os.spawnvp(os.P_NOWAIT, "/bin/chown", ["/bin/chown", ugstr, file])
|
||||
os.spawnvp(os.P_NOWAIT, "/bin/chmod", ["/bin/chmod", "664", file])
|
||||
@@ -0,0 +1,18 @@
|
||||
diff -up libutempter-1.1.6/Makefile.pierelro libutempter-1.1.6/Makefile
|
||||
--- libutempter-1.1.6/Makefile.pierelro 2010-11-04 18:14:53.000000000 +0100
|
||||
+++ libutempter-1.1.6/Makefile 2013-01-24 15:58:06.241865564 +0100
|
||||
@@ -52,11 +52,12 @@ all: $(TARGETS)
|
||||
$(COMPILE.c) -fPIC $< $(OUTPUT_OPTION)
|
||||
|
||||
$(PROJECT): utempter.c
|
||||
- $(LINK.c) -Wl,-z,now,-stats $(LDLIBS) $< $(OUTPUT_OPTION)
|
||||
+ $(LINK.c) -pie -fPIE -Wl,-z,relro,-z,now,-stats $(LDLIBS) \
|
||||
+ $< $(OUTPUT_OPTION)
|
||||
|
||||
$(SHAREDLIB): iface.os $(MAP)
|
||||
$(LINK.o) -shared \
|
||||
- -Wl,-soname,$(SONAME),--version-script=$(MAP),-z,defs,-stats \
|
||||
+ -Wl,-soname,$(SONAME),--version-script=$(MAP),-z,relro,-z,defs,-stats \
|
||||
-lc $< $(OUTPUT_OPTION)
|
||||
|
||||
$(STATICLIB): iface.o
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>utempter</Name>
|
||||
<Homepage>http://www.redhat.com/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Application that allows non-privileged applications to write utmp (login) info</Summary>
|
||||
<Description>Utempter is a utility that allows non-privileged applications such as terminal emulators to modify the utmp database without having to setuid root.</Description>
|
||||
<Archive sha1sum="1964279755290c4b576f2db0ed518e2b45a9ca53" type="tarbz2">ftp://ftp.altlinux.org/pub/people/ldv/utempter/libutempter-1.1.6.tar.bz2</Archive>
|
||||
<Patches>
|
||||
<Patch level="1">libutempter-pierelro.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>utempter</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/libexec</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
<Provides>
|
||||
<COMAR script="package.py">System.Package</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>utempter-devel</Name>
|
||||
<Summary>Development files for utempter</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">utempter</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-25</Date>
|
||||
<Version>1.1.6</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvarice@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-20</Date>
|
||||
<Version>1.1.6</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2010-10-12</Date>
|
||||
<Version>0.5.5</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>utempter</Name>
|
||||
<Summary xml:lang="tr">utemper, utmp(oturum açma) bilgilerini yazmak için ayrıcalıksız uygulamalara izin veren bir uygulamadır.</Summary>
|
||||
<Description xml:lang="tr">Utempter, terminal emulatörleri gibi, yetkisiz uygulamalara setuid e ihtiyaç duymadan utmp veritabanına yazma hakkı verir.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>utempter-devel</Name>
|
||||
<Summary xml:lang="tr">utempter için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user