Magellan Linux

Contents of /smage/trunk/core/hwinfo/hwinfo-21.66-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13086 - (show annotations) (download)
Tue Jun 25 11:37:29 2019 UTC (4 years, 10 months ago) by niro
File size: 3128 byte(s)
auto added: ver bump to 21.66-r1
1 # $Id$
2
3 PNAME="hwinfo"
4 PVER="21.66"
5 PBUILD="r1"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux."
10 HOMEPAGE="http://www.suse.com/"
11
12 DEPEND=">= sys-libs/libx86emu-1.1"
13 SDEPEND=">= sys-apps/dbus-dev-1.12
14 >= sys-libs/libx86emu-dev-1.1"
15
16 SRCFILE="${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 ALX_PKG_KEEP="etc/conf.d/hwsetup
20 usr/sbin/hwinfo
21 usr/sbin/hwsetup
22 usr/sbin/ddcxinfo-knoppix
23 usr/$(mlibdir)/*.so
24 usr/$(mlibdir)/*.so.*
25 var/lib/hardware"
26 sminclude mtools alx-split
27
28 EMHW_SVN_REV="2677"
29 EDDCX_REV="1.3"
30
31 SRC_URI=(
32 https://github.com/openSUSE/${PNAME}/archive/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
35 mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
36 mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch
37 mirror://${PNAME}/${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch
38 mirror://${PNAME}/${PNAME}-18.5-no-xen.patch
39 mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch
40 mirror://${PNAME}/${PNAME}-21.23-add-intel-haswell-ult-intefrated-graphic-controller-x11-drivers-i386-amd64.patch
41 mirror://${PNAME}/emulate-hwsetup.sh-${EMHW_SVN_REV}
42 mirror://${PNAME}/emulate-ddcxinfo-knoppix.sh-${EDDCX_REV}
43 )
44
45 UP2SEPERATOR="\/"
46 UP2DATE="updatecmd https://github.com/openSUSE/${PNAME}/releases | highesttarball gz"
47
48 src_prepare()
49 {
50 munpack ${SRCFILE} || die
51 cd ${SRCDIR}
52
53 # disable xen checks which are broken atm
54 mpatch ${PNAME}-18.5-no-xen.patch || die
55
56 # TIOCGDEV isn't supported in the mainline kernel
57 mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die
58
59 # add intel pineview to known x11 drivers
60 mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
61
62 # use r128 module for all ati rage cards
63 mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
64
65 # use mach64 module for all ati mach64 cards
66 mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die
67
68 # add a bunch of via drivers to known x11 drivers using xf86-video-openchrome
69 mpatch -Np1 ${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch || die
70
71 # add intel haswell ult graphic support
72 mpatch -Np1 ${PNAME}-21.23-add-intel-haswell-ult-intefrated-graphic-controller-x11-drivers-i386-amd64.patch || die
73
74 # add missing VERSION
75 echo "${PVER}" > ${SRCDIR}/VERSION || die
76 }
77
78 src_compile()
79 {
80 cd ${SRCDIR}
81 mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) GIT2LOG=true || die
82 }
83
84 alx_generic_src_install()
85 {
86 cd ${SRCDIR}
87 mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) GIT2LOG=true install || die
88 mkeepdir /var/lib/hardware/udi || die
89
90 minstallman doc/hwinfo.8 || die
91 minstalldocs Changelog COPYING README VERSION || die
92
93 # broken Makefile, remove an empty dir
94 rmdir ${BINDIR}/sbin || die
95
96 # install hwsetup emulation script
97 minstalldir /usr/sbin || die
98 minstallexec -s emulate-hwsetup.sh-${EMHW_SVN_REV} /usr/sbin/hwsetup || die
99
100 # install ddcxinfo emulation script
101 minstalldir /usr/sbin || die
102 minstallexec -s emulate-ddcxinfo-knoppix.sh-${EDDCX_REV} /usr/sbin/ddcxinfo-knoppix || die
103 }