create core package
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/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 get
|
||||
|
||||
def build():
|
||||
autotools.make('OPT="%s" \
|
||||
SHARED="yes" \
|
||||
IDSDIR="/usr/share/misc" \
|
||||
MANDIR="/usr/share/man" \
|
||||
all' % get.CFLAGS())
|
||||
|
||||
def install():
|
||||
autotools.rawInstall('DESTDIR="%s" \
|
||||
SHARED="yes" \
|
||||
IDSDIR="/usr/share/misc" \
|
||||
MANDIR="/usr/share/man" \
|
||||
install-lib' % get.installDIR())
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
Index: pciutils-3.1.7/Makefile
|
||||
===================================================================
|
||||
--- pciutils-3.1.7.orig/Makefile
|
||||
+++ pciutils-3.1.7/Makefile
|
||||
@@ -25,7 +25,7 @@ SHARED=no
|
||||
ABI_VERSION=.3
|
||||
|
||||
# Installation directories
|
||||
-PREFIX=/usr/local
|
||||
+PREFIX=/usr
|
||||
SBINDIR=$(PREFIX)/sbin
|
||||
SHAREDIR=$(PREFIX)/share
|
||||
IDSDIR=$(SHAREDIR)
|
||||
@@ -37,10 +37,6 @@ PKGCFDIR=$(LIBDIR)/pkgconfig
|
||||
# Commands
|
||||
INSTALL=install
|
||||
DIRINSTALL=install -d
|
||||
-STRIP=-s
|
||||
-CC=$(CROSS_COMPILE)gcc
|
||||
-AR=$(CROSS_COMPILE)ar
|
||||
-RANLIB=$(CROSS_COMPILE)ranlib
|
||||
|
||||
# Base name of the library (overriden on NetBSD, which has its own libpci)
|
||||
LIBNAME=libpci
|
||||
@@ -97,7 +93,7 @@ distclean: clean
|
||||
install: all
|
||||
# -c is ignored on Linux, but required on FreeBSD
|
||||
$(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7
|
||||
- $(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)
|
||||
+ $(INSTALL) -c -m 755 lspci setpci $(DESTDIR)$(SBINDIR)
|
||||
$(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(IDSDIR)
|
||||
$(INSTALL) -c -m 644 lspci.8 setpci.8 $(DESTDIR)$(MANDIR)/man8
|
||||
$(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
diff -ur pciutils-3.0.0.orig/lib/configure pciutils-3.0.0/lib/configure
|
||||
--- pciutils-3.0.0.orig/lib/configure 2008-04-10 22:15:47.000000000 +0300
|
||||
+++ pciutils-3.0.0/lib/configure 2008-04-11 12:45:41.000000000 +0300
|
||||
@@ -125,10 +125,7 @@
|
||||
echo "$ZLIB (auto-detected)"
|
||||
fi
|
||||
if [ "$ZLIB" = yes ] ; then
|
||||
- echo >>$c '#define PCI_COMPRESSED_IDS'
|
||||
- echo >>$c '#define PCI_IDS "pci.ids.gz"'
|
||||
- echo >>$m 'LIBZ=-lz'
|
||||
- echo >>$m 'WITH_LIBS+=$(LIBZ)'
|
||||
+ echo >>$c '#define PCI_IDS "pci.ids"'
|
||||
else
|
||||
echo >>$c '#define PCI_IDS "pci.ids"'
|
||||
fi
|
||||
@@ -0,0 +1,55 @@
|
||||
diff -ur pciutils-3.0.0.orig/Makefile pciutils-3.0.0/Makefile
|
||||
--- pciutils-3.0.0.orig/Makefile 2008-04-10 22:19:43.000000000 +0300
|
||||
+++ pciutils-3.0.0/Makefile 2008-04-11 12:44:07.000000000 +0300
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
export
|
||||
|
||||
-all: lib/$(PCILIB) lspci setpci example lspci.8 setpci.8 pcilib.7 update-pciids update-pciids.8 $(PCI_IDS)
|
||||
+all: lib/$(PCILIB) lspci setpci example lspci.8 setpci.8 pcilib.7 $(PCI_IDS)
|
||||
|
||||
lib/$(PCILIB): $(PCIINC) force
|
||||
$(MAKE) -C lib all
|
||||
@@ -67,10 +67,6 @@
|
||||
setpci.o: setpci.c pciutils.h $(PCIINC)
|
||||
common.o: common.c pciutils.h $(PCIINC)
|
||||
|
||||
-update-pciids: update-pciids.sh
|
||||
- sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/$(PCI_IDS)@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=$(PCI_COMPRESSED_IDS)@"
|
||||
- chmod +x $@
|
||||
-
|
||||
# The example of use of libpci
|
||||
example: example.o lib/$(PCILIB)
|
||||
example.o: example.c $(PCIINC)
|
||||
@@ -83,7 +79,7 @@
|
||||
|
||||
clean:
|
||||
rm -f `find . -name "*~" -o -name "*.[oa]" -o -name "\#*\#" -o -name TAGS -o -name core -o -name "*.orig"`
|
||||
- rm -f update-pciids lspci setpci example lib/config.* *.[78] pci.ids.* lib/*.pc lib/*.so lib/*.so.*
|
||||
+ rm -f lspci setpci example lib/config.* *.[78] pci.ids.* lib/*.pc lib/*.so lib/*.so.*
|
||||
rm -rf maint/dist
|
||||
|
||||
distclean: clean
|
||||
@@ -92,9 +88,8 @@
|
||||
# -c is ignored on Linux, but required on FreeBSD
|
||||
$(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7
|
||||
$(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)
|
||||
- $(INSTALL) -c -m 755 update-pciids $(DESTDIR)$(SBINDIR)
|
||||
$(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(IDSDIR)
|
||||
- $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
|
||||
+ $(INSTALL) -c -m 644 lspci.8 setpci.8 $(DESTDIR)$(MANDIR)/man8
|
||||
$(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7
|
||||
ifeq ($(SHARED),yes)
|
||||
$(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
|
||||
@@ -112,9 +107,9 @@
|
||||
endif
|
||||
|
||||
uninstall: all
|
||||
- rm -f $(DESTDIR)$(SBINDIR)/lspci $(DESTDIR)$(SBINDIR)/setpci $(DESTDIR)$(SBINDIR)/update-pciids
|
||||
+ rm -f $(DESTDIR)$(SBINDIR)/lspci $(DESTDIR)$(SBINDIR)/setpci
|
||||
rm -f $(DESTDIR)$(IDSDIR)/$(PCI_IDS)
|
||||
- rm -f $(DESTDIR)$(MANDIR)/man8/lspci.8 $(DESTDIR)$(MANDIR)/man8/setpci.8 $(DESTDIR)$(MANDIR)/man8/update-pciids.8
|
||||
+ rm -f $(DESTDIR)$(MANDIR)/man8/lspci.8 $(DESTDIR)$(MANDIR)/man8/setpci.8
|
||||
rm -f $(DESTDIR)$(MANDIR)/man7/pcilib.7
|
||||
ifeq ($(SHARED),yes)
|
||||
rm -f $(DESTDIR)$(LIBDIR)/$(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION)
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pciutils</Name>
|
||||
<Homepage>http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Various utilities dealing with the PCI bus</Summary>
|
||||
<Description>The PCI Utilities are a collection of programs for inspecting and manipulating configuration of PCI devices.</Description>
|
||||
<Archive sha1sum="2009c441bfb78811c2991bde03b88c043654c195" type="tarxz">ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-3.2.1.tar.xz</Archive>
|
||||
<AdditionalFiles>
|
||||
<!-- 20100714
|
||||
from: http://pciids.sourceforge.net/v2.2/pci.ids
|
||||
-->
|
||||
<AdditionalFile target="pci.ids">pci.ids</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Patches>
|
||||
<!-- Disable gz support of pciids file -->
|
||||
<Patch level="1">pciutils-nogz.patch</Patch>
|
||||
|
||||
<!-- Remove update-pciids support -->
|
||||
<Patch level="1">pciutils-remove-update-pciids.patch</Patch>
|
||||
<Patch level="1">makefile.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pciutils</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="data">/usr/share/misc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>pciutils-devel</Name>
|
||||
<PartOf>system.devel</PartOf>
|
||||
<Summary>Development files for pciutils</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">pciutils</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>3.2.1</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-04-03</Date>
|
||||
<Version>3.2.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-10-30</Date>
|
||||
<Version>3.1.10</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-05</Date>
|
||||
<Version>3.1.10</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pciutils</Name>
|
||||
<Summary xml:lang="tr">PCI veriyolu işlevleri ile ilgili çeşitli programlar</Summary>
|
||||
<Description xml:lang="tr">Pakette bulunan PCI araçları, PCI veriyolunu kullanan donanımlarınızın görüntülenmesi ve ayarlanması işlevini yürütür.</Description>
|
||||
<Description xml:lang="fr">Les utilitaires PCI sont une collection de programmes d'inspection et de manipulation de la configuration des périphériques PCI.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pciutils-devel</Name>
|
||||
<Summary xml:lang="tr">pciutils için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user