Elog PKGBUILD for review (AUR)
I would appreciate feedback on this PKGBUILD before I submit it to the AUR. It includes boot and install scripts, new user and group ID's, and other things I have not done before. I used other Arch examples as models, but I might not have fully understood what I was trying to emulate.
elog uses the filesystem as a database to log/timestamp and serve back information submitted via http. I think it is a great program, carefully designed, stable, and actively supported. I would recommend it to anyone who needs to log/timestamp information and either: a) wants the information to remain accessible to scripts and not disappear into a large binary blob, or b) doesn't want to install and maintain a normal database.
# Contributor: David Scholl <djscholl>
pkgname=elog
pkgver=2.6.3.1
pkgrel=1
pkgdesc="Electronic logbook w/ attached file support, doesn't use a database."
url="http://midas.psi.ch/elog/"
license="GPL"
arch=(i686)
depends=('glibc')
install=elog.install
backup=etc/elog/elogd.cfg
source=(http://midas.psi.ch/elog/download/tar/elog-2.6.3-1.tar.gz elogd)
md5sums=('935f19692a05c2cb289d45bac14f1088' '746fc2d7ea204473ef95136b99fc7bb0')
build() {
cd $startdir/src/$pkgname-2.6.3
# make things more Arch-friendly
sed -i '/^ELOGDIR/s/$(PREFIX)/elog//etc/elog/' Makefile
sed -i '/^BINOWNER/s/bin/root/' Makefile
sed -i '/^BINGROUP/s/bin/root/' Makefile
# make and install
make PREFIX=/usr || return 1
make PREFIX=/usr ROOT=$startdir/pkg install
# substitute an Arch-friendly init script in place of the default
cp ../../elogd $startdir/pkg/etc/rc.d/
rm -Rf $startdir/pkg/etc/rc.d/init.d
# move data to standard Arch locations
mkdir -p $startdir/pkg/usr/share/elog
mv $startdir/pkg/etc/elog/resources $startdir/pkg/usr/share/elog
mv $startdir/pkg/etc/elog/scripts $startdir/pkg/usr/share/elog
mv $startdir/pkg/etc/elog/themes $startdir/pkg/usr/share/elog
mkdir -p $startdir/pkg/home/elog
mv $startdir/pkg/etc/elog/logbooks $startdir/pkg/home/elog
# tell elogd about the new locations
sed -i '/[global]/s/$/nLogbook dir = /home/elog/logbooks/'
$startdir/pkg/etc/elog/elogd.cfg
sed -i '/[global]/s/$/nResource dir = /usr/share/elog/'
$startdir/pkg/etc/elog/elogd.cfg
elog.install
# arg 1: the new package version
post_install() {
getent group elog >/dev/null || usr/sbin/groupadd elog
getent passwd elog >/dev/null || usr/sbin/useradd -c "elog Server"
-g elog -d /home/elog -s /bin/false elog
usr/bin/passwd -l elog &>/dev/null
chown -R elog:elog /etc/elog
chown -R elog:elog /home/elog
echo ">>> Add elogd to the DAEMONS array in /etc/rc.conf if you want"
echo ">>> the server to start at system boot-up."
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
# arg 1: the old package version
pre_remove() {
usr/sbin/userdel elog &>/dev/null
usr/sbin/groupdel elog &>/dev/null
echo ">>> Post-install logbook entries remain after package removal."
op=$1
shift
$op $*
elogd
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/elogd`
case "$1" in
start)
stat_busy "Starting elogd"
[ -z "$PID" ] && /usr/sbin/elogd -D -c /etc/elog/elogd.cfg
> /dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon elogd
stat_done
fi
stop)
stat_busy "Stopping elogd"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon elogd
stat_done
fi
restart)
$0 stop
sleep 1
$0 start
echo "usage: $0 {start|stop|restart}"
esac
exit 0
I would appreciate feedback on this PKGBUILD before I submit it to the AUR. It includes boot and install scripts, new user and group ID's, and other things I have not done before. I used other Arch examples as models, but I might not have fully understood what I was trying to emulate.
elog uses the filesystem as a database to log/timestamp and serve back information submitted via http. I think it is a great program, carefully designed, stable, and actively supported. I would recommend it to anyone who needs to log/timestamp information and either: a) wants the information to remain accessible to scripts and not disappear into a large binary blob, or b) doesn't want to install and maintain a normal database.
# Contributor: David Scholl <djscholl>
pkgname=elog
pkgver=2.6.3.1
pkgrel=1
pkgdesc="Electronic logbook w/ attached file support, doesn't use a database."
url="http://midas.psi.ch/elog/"
license="GPL"
arch=(i686)
depends=('glibc')
install=elog.install
backup=etc/elog/elogd.cfg
source=(http://midas.psi.ch/elog/download/tar/elog-2.6.3-1.tar.gz elogd)
md5sums=('935f19692a05c2cb289d45bac14f1088' '746fc2d7ea204473ef95136b99fc7bb0')
build() {
cd $startdir/src/$pkgname-2.6.3
# make things more Arch-friendly
sed -i '/^ELOGDIR/s/$(PREFIX)/elog//etc/elog/' Makefile
sed -i '/^BINOWNER/s/bin/root/' Makefile
sed -i '/^BINGROUP/s/bin/root/' Makefile
# make and install
make PREFIX=/usr || return 1
make PREFIX=/usr ROOT=$startdir/pkg install
# substitute an Arch-friendly init script in place of the default
cp ../../elogd $startdir/pkg/etc/rc.d/
rm -Rf $startdir/pkg/etc/rc.d/init.d
# move data to standard Arch locations
mkdir -p $startdir/pkg/usr/share/elog
mv $startdir/pkg/etc/elog/resources $startdir/pkg/usr/share/elog
mv $startdir/pkg/etc/elog/scripts $startdir/pkg/usr/share/elog
mv $startdir/pkg/etc/elog/themes $startdir/pkg/usr/share/elog
mkdir -p $startdir/pkg/home/elog
mv $startdir/pkg/etc/elog/logbooks $startdir/pkg/home/elog
# tell elogd about the new locations
sed -i '/[global]/s/$/nLogbook dir = /home/elog/logbooks/'
$startdir/pkg/etc/elog/elogd.cfg
sed -i '/[global]/s/$/nResource dir = /usr/share/elog/'
$startdir/pkg/etc/elog/elogd.cfg
elog.install
# arg 1: the new package version
post_install() {
getent group elog >/dev/null || usr/sbin/groupadd elog
getent passwd elog >/dev/null || usr/sbin/useradd -c "elog Server"
-g elog -d /home/elog -s /bin/false elog
usr/bin/passwd -l elog &>/dev/null
chown -R elog:elog /etc/elog
chown -R elog:elog /home/elog
echo ">>> Add elogd to the DAEMONS array in /etc/rc.conf if you want"
echo ">>> the server to start at system boot-up."
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
# arg 1: the old package version
pre_remove() {
usr/sbin/userdel elog &>/dev/null
usr/sbin/groupdel elog &>/dev/null
echo ">>> Post-install logbook entries remain after package removal."
op=$1
shift
$op $*
elogd
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/elogd`
case "$1" in
start)
stat_busy "Starting elogd"
[ -z "$PID" ] && /usr/sbin/elogd -D -c /etc/elog/elogd.cfg
> /dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon elogd
stat_done
fi
stop)
stat_busy "Stopping elogd"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon elogd
stat_done
fi
restart)
$0 stop
sleep 1
$0 start
echo "usage: $0 {start|stop|restart}"
esac
exit 0
Similar Messages
-
Hdf4 and pyhdf AUR PKGBUILDS for review
pyhdf is a Python interface to the HDF4 library. HDF4 is a scientific data file format. pyhdf links to the static libs built by the HDF4 package. I decided to split HDF4 out into its own package because someone else might want to link to these libraries, or use the numerous HDF4 utilities that accompany them. There is an hdf5 package in the AUR already, but hdf5 coexists with hdf4, rather than replacing it.
Here is the HDF4 PKGBUILD:
# Contributor: David Scholl <djscholl>
pkgname=hdf4
pkgver=2r1
pkgrel=1
pkgdesc="General purpose library and file format for storing scientific data."
url="http://hdf.ncsa.uiuc.edu/hdf4.html"
license="custom"
depends=('zlib' 'libjpeg')
makedepends=(gcc-fortran)
source=(ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF4.$pkgver.tar.gz ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/patches/configure)
md5sums=('9082c6fa913b9188452fa6c5217e1573' '845b0e1a20c0a969fca386b8830236ed')
build() {
cp ./configure $startdir/src/HDF4.$pkgver
cd $startdir/src/HDF4.$pkgver
./configure --prefix=/usr F77=gfortran FFLAGS=-ffixed-line-length-0
make || return 1
make prefix=$startdir/pkg/usr install
mkdir -p $startdir/pkg/usr/share/licenses/hdf4
cp $startdir/src/HDF4.$pkgver/COPYING $startdir/pkg/usr/share/licenses/hdf4
HDF4 was originally built with commercial Fortran 77 compilers, although g77 worked too. Since g77 is gone, I built it with gfortran. I encountered a couple of issues with the "make check" command, which compiles and runs tests of the libraries and utilities. The main package builds without errors using plain gfortran. However, the test code contains lines longer than 72 characters, so I had to add the FFLAGS=-ffixed-line-length-0 option to the configure script to be able to build the tests. When I manually do
cd $startdir/src/HDF4.$pkgver
make check || return 1
all of the tests are built and passed without errors. However, when I put these two lines into the build script, the tests fail as follows:
============================
HDF-SD C interfaces tests
============================
srcdir="." ./hdftest > hdfout.new
make[2]: *** [check] Error 1
make[2]: Leaving directory `/home/dscholl/abs/hdf4check/src/HDF4.2r1/mfhdf/libsrc'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/dscholl/abs/hdf4check/src/HDF4.2r1/mfhdf'
make: *** [check-recursive] Error 1
==> ERROR: Build Failed. Aborting...
I would like to include the tests in the build, because it's bad when your data gets mangled. However, I don't know how to get the tests to run in the build script. If anyone has any suggestions I would appreciate them.
HDF4 is released under a license which resembles other Open Source licenses I have read, so I treated it as a custom license. The HDF4 package can be built with an optional compression library called szip, which is not an Open Source product. szip is available under non-commercial and commercial licenses, but prospective commercial users must contact the licensing agent. The AUR doesn't have a way to make that clear to prospective users, so I left out szip.
Here is the PKGBUILD for pyhdf:
# Contributor: David Scholl <djscholl>
pkgname=pyhdf
pkgver=0.7.3
pkgrel=1
pkgdesc="Python bindings for the HDF library."
url="http://pysclint.sourceforge.net/pyhdf/"
license="Python"
depends=('python' 'python-numeric' 'zlib' 'libjpeg')
makedepends=(hdf4)
source=(http://dl.sourceforge.net/pysclint/$pkgname-0.7-3.tar.gz)
md5sums=('f55aa19e61cf6501f436e27783098000')
build() {
cd $startdir/src/$pkgname-0.7-3
sed -i '/#extra_compile_args=["-DNOSZIP"],/s/#//' setup.py
sed -i '/libraries = ["mfhdf", "df", "jpeg", "z", "sz"]/s/libraries/#libraries/' setup.py
sed -i '/#libraries = ["mfhdf", "df", "jpeg", "z"]/s/#//' setup.py
python setup.py install --root=$startdir/pkg
pyhdf assumes the availability of szip by default, so its setup.py must be hacked to build it without szip. I do this with three sed commands, following the instructions in the INSTALL file and the comments in the setup.py. The sourceforge page for pyhdf describes it as being released under the Python license, but there is no copyright file included with the source distribution, nor did I find one on the project website.
If anyone has corrections or improvements to suggest, please post.I have done some further digging into the "make check" issue, but I don't know enough to solve it. I'm hoping someone will be able to figure out a patch or work-around that I can use.
The error message announces leaving the src/HDF4.2r1/mfhdf/libsrc directory. We can find the first part of the error message in the Makefile:
less -N src/HDF4.2r1/mfhdf/libsrc/Makefile
729 check:
730 @echo "============================"
731 @echo "HDF-SD C interfaces tests"
732 @echo "============================"
733 srcdir="$(srcdir)" ./hdftest > hdfout.new
734 @cmd="$(DIFF) hdfout.new $(srcdir)/hdfout.sav";
It appears to me that line 733 bombs when "make check" is run from the build script, and the diff command in 734 doesn't get a chance to run.
The hdfout.new from the build script "make check" ends in
*** UNEXPECTED VALUE from second SDstart is 393216 at line 61 in tsd.c
num_err == 1
The file src/HDF4.2r1/mfhdf/libsrc/hdfout.sav ends in
num_err == 0
less -N src/HDF4.2r1/mfhdf/libsrc/tsd.c
24 #define FILE_NAME "sdtest.hdf" /* data file to test ID types */
59 /* Create a protected file */
60 fid = SDstart(FILE_NAME, DFACC_CREATE);
61 VERIFY(fid, FAIL, "second SDstart");
Running "make check" manually:
$ ls -l sdtest.hdf
--w------- 1 dscholl dscholl 2503 2006-08-13 09:45 sdtest.hdf
Running "make check" from within the build script:
$ ls -l sdtest.hdf
-rw------- 1 dscholl dscholl 2502 2006-08-13 09:48 sdtest.hdf
I'm not a C programmer, but it appears to me that the hdftest binary is trying to create a read-protected --w------- file, and actually creating a -rw------- file. When it tries to read it, it generates an error message and the Makefile stops running. What is different about the build script environment that would cause this difference in file creation? -
Hello, since this is the first package I've created, I thought it would be best to have it reviewed before submitting it to the AUR.
Thank you!
PKGBUILD:
# Maintainer: Jeremey Hustman <jeremeyhustman at gmail daught com>
pkgname=cflint-git
_gitname=CFLint
pkgver=CFLint.0.4.release.r21.d446a95
pkgrel=1
pkgdesc="A static code analysis tool for ColdFusion"
url=https://github.com/cflint/CFLint/wiki
arch=(any)
license=('(L)GPL3')
depends=()
makedepends=('git' 'maven')
conflicts=($_gitname)
provides=($_gitname)
noextract=()
source=("git://github.com/cflint/${_gitname}.git")
md5sums=('SKIP')
pkgver() {
cd "$_gitname"
# Git, tags available
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
build() {
if [ -d "${_gitname}" ]; then
cd "$_gitname"
git clean -dfx
git reset --hard
git pull origin master
else
git clone "${_gitroot}"
cd "${_gitname}"
fi
mvn clean install
package() {
cd "${srcdir}/${_gitname}"
mkdir -p ${pkgdir}/{usr/bin,usr/etc,usr/lib}
pwd
install -Dm755 target/appassembler/bin/* "${pkgdir}/usr/bin/"
install -Dm644 target/appassembler/etc/* "${pkgdir}/usr/etc/"
install -Dm644 target/appassembler/lib/* "${pkgdir}/usr/lib/"First off, the entire if/else block in the build function is not only unnecessary but counter productive. Get rid of it.
What is the pwd command in the package function for?
You did well with quoting in general, but missed the mkdir command.
I would suggest cleaning up the pkgver a bit. You really don't want it to start with "CFLint", for example. -
PKGBUILD Public review request for wxFreeChart
Hi Arch Linux community.I am a newbie on Arch Linux. Just installed it a few months ago & I like it's install once, lifetime updates without reinstalling philosophy! Please review my first PKGBUILD for wxFreeChart:
http://wxcode.sourceforge.net/components/freechart/
Here is the PKGBUILD
# Maintainer: Sum <keansum AT gmail DOT com>
pkgname=freechart
pkgver=1.6
pkgrel=1
pkgdesc="Free powerful charting library based on wxWidgets."
arch=('x86_64' 'i686')
url="http://wxcode.sourceforge.net/components/freechart/"
license=('custom:"wxWindows"')
depends=('wxgtk')
source=(http://downloads.sourceforge.net/project/wxcode/Components/wxFreeChart/$pkgname-$pkgver.tar.gz
'configure.patch'
'LICENSE')
md5sums=('0e39d22a76c43df9e566ca1e1b669594'
'38dd8576fcd0b2c2e726499b2042a42d'
'9063869c9f1586dc0bd7c3f8d5060f76')
prepare() {
export CPLUS_INCLUDE_PATH=/usr/include/wx-3.0/:/usr/lib/wx/include/gtk2-unicode-3.0/
export LIBS=-lwx_gtk2u_adv-3.0
cd "$srcdir/$pkgname"
patch --verbose configure $srcdir/configure.patch
build() {
cd "$srcdir/$pkgname"
./configure --prefix=/usr
make
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
install -D -m644 $srcdir/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
Here is the LICENSE file.
wxWidgets is currently licenced under the "wxWindows Library Licence" pending
approval of the "wxWidgets Library Licence" which will be identical apart from
the name.
The wxWindows Library Licence is essentially the L-GPL (Library General Public
Licence), with an exception stating that derived works in binary form may be
distributed on the user's own terms. This is a solution that satisfies those
who wish to produce GPL'ed software using wxWidgets, and also those producing
proprietary software.
Participants in the discussion that led to this decision include the folk from
AbiSource, Robert Roebling, Julian Smart, Markus Fleck, Karsten Ballueder, and
some advice from Richard Stallman. Richard has confirmed that the new licence
is compatible with GPL'ed applications. However, there are no significant
restrictions on proprietary applications.
The wxWindows Library Licence has been approved by the Open Source Initiative.
In August 2005, an ambiguity in Clause 2 was removed (replaced "the user's"
with "your") and the version bumped to 3.1.
... then this last one is a patch file for the configure script. The code is for version 1.6 but to me it looks like the author forgotten to update the version from 1.4 to 1.6 in the configure script. I ahve checked in freechart/ReadMe.txt saying it is verion 1.6 and confirmed that the 1.6 addition of freechart/src/chartsplitpanel.cpp indeed exists.
*** 1,6 ****
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.63 for WXFREECHART 1.4.
# Report bugs to <[email protected]>.
--- 1,6 ----
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.63 for WXFREECHART 1.6.
# Report bugs to <[email protected]>.
*** 596,603 ****
# Identity of this package.
PACKAGE_NAME='WXFREECHART'
PACKAGE_TARNAME='wxfreechart'
! PACKAGE_VERSION='1.4'
! PACKAGE_STRING='WXFREECHART 1.4'
PACKAGE_BUGREPORT='[email protected]'
ac_subst_vars='LTLIBOBJS
--- 596,603 ----
# Identity of this package.
PACKAGE_NAME='WXFREECHART'
PACKAGE_TARNAME='wxfreechart'
! PACKAGE_VERSION='1.6'
! PACKAGE_STRING='WXFREECHART 1.6'
PACKAGE_BUGREPORT='[email protected]'
ac_subst_vars='LTLIBOBJS
*** 1332,1338 ****
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
! \`configure' configures WXFREECHART 1.4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
--- 1332,1338 ----
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
! \`configure' configures WXFREECHART 1.6 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
*** 1398,1404 ****
if test -n "$ac_init_help"; then
case $ac_init_help in
! short | recursive ) echo "Configuration of WXFREECHART 1.4:";;
esac
cat <<\_ACEOF
--- 1398,1404 ----
if test -n "$ac_init_help"; then
case $ac_init_help in
! short | recursive ) echo "Configuration of WXFREECHART 1.6:";;
esac
cat <<\_ACEOF
*** 1506,1512 ****
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
! WXFREECHART configure 1.4
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
--- 1506,1512 ----
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
! WXFREECHART configure 1.6
generated by GNU Autoconf 2.63
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
*** 1520,1526 ****
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
! It was created by WXFREECHART $as_me 1.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
--- 1520,1526 ----
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
! It was created by WXFREECHART $as_me 1.6, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ $0 $@
*** 10248,10254 ****
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
! This file was extended by WXFREECHART $as_me 1.4, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
--- 10248,10254 ----
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
! This file was extended by WXFREECHART $as_me 1.6, which was
generated by GNU Autoconf 2.63. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
*** 10298,10304 ****
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
! WXFREECHART config.status 1.4
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
--- 10298,10304 ----
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
! WXFREECHART config.status 1.6
configured by $0, generated by GNU Autoconf 2.63,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
I have used namcap to check the PKGBUILD and the generated freechart-1.6-1-x86_64.pkg.tar.xz. Both passed. However when I use the -i switch, I get a whole bunch of messages. I am quite sure these dependencies do not need to be included in the PKGBUILD. Please correct if I am wrong.
$ namcap -i freechart-1.6-1-x86_64.pkg.tar.xz
freechart I: Link-level dependence (wxgtk) in file ['usr/lib/libwx_baseu-3.0.so.0', 'usr/lib/libwx_gtk2u_aui-3.0.so.0', 'usr/lib/libwx_gtk2u_core-3.0.so.0']
freechart I: Link-level dependence (gcc-libs) in file ['usr/lib/libgcc_s.so.1', 'usr/lib/libstdc++.so.6']
freechart I: Link-level dependence (glibc) in file ['usr/lib/libm.so.6', 'usr/lib/libc.so.6']
freechart I: Symlink (usr/lib/libwxcode_gtk2u_freechart-3.0.so.0) found that points to libwxcode_gtk2u_freechart-3.0.so.0.0.0
freechart I: Symlink (usr/lib/libwxcode_gtk2u_freechart-3.0.so) found that points to libwxcode_gtk2u_freechart-3.0.so.0
freechart I: Dependency covered by dependencies from link dependence (freetype2)
freechart I: Dependency covered by dependencies from link dependence (jasper)
freechart I: Dependency covered by dependencies from link dependence (xextproto)
freechart I: Dependency covered by dependencies from link dependence (gdbm)
freechart I: Dependency covered by dependencies from link dependence (gstreamer0.10-base)
freechart I: Dependency covered by dependencies from link dependence (graphite)
freechart I: Dependency covered by dependencies from link dependence (libcap)
freechart I: Dependency covered by dependencies from link dependence (libx11)
freechart I: Dependency covered by dependencies from link dependence (coreutils)
freechart I: Dependency covered by dependencies from link dependence (shared-mime-info)
freechart I: Dependency covered by dependencies from link dependence (pcre)
freechart I: Dependency covered by dependencies from link dependence (xf86vidmodeproto)
freechart I: Dependency covered by dependencies from link dependence (shadow)
freechart I: Dependency covered by dependencies from link dependence (readline)
freechart I: Dependency covered by dependencies from link dependence (gtk2)
freechart I: Dependency covered by dependencies from link dependence (libxdmcp)
freechart I: Dependency covered by dependencies from link dependence (damageproto)
freechart I: Dependency covered by dependencies from link dependence (dbus)
freechart I: Dependency covered by dependencies from link dependence (avahi)
freechart I: Dependency covered by dependencies from link dependence (cracklib)
freechart I: Dependency covered by dependencies from link dependence (videoproto)
freechart I: Dependency covered by dependencies from link dependence (libsasl)
freechart I: Dependency covered by dependencies from link dependence (libxft)
freechart I: Dependency covered by dependencies from link dependence (libxrandr)
freechart I: Dependency covered by dependencies from link dependence (fontconfig)
freechart I: Dependency covered by dependencies from link dependence (libxdamage)
freechart I: Dependency covered by dependencies from link dependence (acl)
freechart I: Dependency covered by dependencies from link dependence (pixman)
freechart I: Dependency covered by dependencies from link dependence (ncurses)
freechart I: Dependency covered by dependencies from link dependence (libdbus)
freechart I: Dependency covered by dependencies from link dependence (cairo)
freechart I: Dependency covered by dependencies from link dependence (zlib)
freechart I: Dependency covered by dependencies from link dependence (xproto)
freechart I: Dependency covered by dependencies from link dependence (harfbuzz)
freechart I: Dependency covered by dependencies from link dependence (libomxil-bellagio)
freechart I: Dependency covered by dependencies from link dependence (kbproto)
freechart I: Dependency covered by dependencies from link dependence (sh)
freechart I: Dependency covered by dependencies from link dependence (pango)
freechart I: Dependency covered by dependencies from link dependence (pam)
freechart I: Dependency covered by dependencies from link dependence (libxau)
freechart I: Dependency covered by dependencies from link dependence (llvm-libs)
freechart I: Dependency covered by dependencies from link dependence (libxfixes)
freechart I: Dependency covered by dependencies from link dependence (attr)
freechart I: Dependency covered by dependencies from link dependence (mesa-dri)
freechart I: Dependency covered by dependencies from link dependence (libtxc_dxtn)
freechart I: Dependency covered by dependencies from link dependence (xz)
freechart I: Dependency covered by dependencies from link dependence (gdk-pixbuf2)
freechart I: Dependency covered by dependencies from link dependence (elfutils)
freechart I: Dependency covered by dependencies from link dependence (libxv)
freechart I: Dependency covered by dependencies from link dependence (mesa)
freechart I: Dependency covered by dependencies from link dependence (renderproto)
freechart I: Dependency covered by dependencies from link dependence (systemd)
freechart I: Dependency covered by dependencies from link dependence (libxcursor)
freechart I: Dependency covered by dependencies from link dependence (hwids)
freechart I: Dependency covered by dependencies from link dependence (bash)
freechart I: Dependency covered by dependencies from link dependence (glibc)
freechart I: Dependency covered by dependencies from link dependence (expat)
freechart I: Dependency covered by dependencies from link dependence (e2fsprogs)
freechart I: Dependency covered by dependencies from link dependence (linux-api-headers)
freechart I: Dependency covered by dependencies from link dependence (libffi)
freechart I: Dependency covered by dependencies from link dependence (libxi)
freechart I: Dependency covered by dependencies from link dependence (libice)
freechart I: Dependency covered by dependencies from link dependence (libldap)
freechart I: Dependency covered by dependencies from link dependence (libxcomposite)
freechart I: Dependency covered by dependencies from link dependence (libgpg-error)
freechart I: Dependency covered by dependencies from link dependence (libxcb)
freechart I: Dependency covered by dependencies from link dependence (libseccomp)
freechart I: Dependency covered by dependencies from link dependence (keyutils)
freechart I: Dependency covered by dependencies from link dependence (xcb-proto)
freechart I: Dependency covered by dependencies from link dependence (randrproto)
freechart I: Dependency covered by dependencies from link dependence (bzip2)
freechart I: Dependency covered by dependencies from link dependence (libxml2)
freechart I: Dependency covered by dependencies from link dependence (libpciaccess)
freechart I: Dependency covered by dependencies from link dependence (util-linux)
freechart I: Dependency covered by dependencies from link dependence (krb5)
freechart I: Dependency covered by dependencies from link dependence (compositeproto)
freechart I: Dependency covered by dependencies from link dependence (glib2)
freechart I: Dependency covered by dependencies from link dependence (libxinerama)
freechart I: Dependency covered by dependencies from link dependence (gstreamer0.10)
freechart I: Dependency covered by dependencies from link dependence (kbd)
freechart I: Dependency covered by dependencies from link dependence (kmod)
freechart I: Dependency covered by dependencies from link dependence (filesystem)
freechart I: Dependency covered by dependencies from link dependence (libxxf86vm)
freechart I: Dependency covered by dependencies from link dependence (tzdata)
freechart I: Dependency covered by dependencies from link dependence (libsm)
freechart I: Dependency covered by dependencies from link dependence (pambase)
freechart I: Dependency covered by dependencies from link dependence (libcups)
freechart I: Dependency covered by dependencies from link dependence (atk)
freechart I: Dependency covered by dependencies from link dependence (libgl)
freechart I: Dependency covered by dependencies from link dependence (libsystemd)
freechart I: Dependency covered by dependencies from link dependence (xineramaproto)
freechart I: Dependency covered by dependencies from link dependence (lzo)
freechart I: Dependency covered by dependencies from link dependence (orc)
freechart I: Dependency covered by dependencies from link dependence (inputproto)
freechart I: Dependency covered by dependencies from link dependence (libpng)
freechart I: Dependency covered by dependencies from link dependence (db)
freechart I: Dependency covered by dependencies from link dependence (libdatrie)
freechart I: Dependency covered by dependencies from link dependence (fixesproto)
freechart I: Dependency covered by dependencies from link dependence (hicolor-icon-theme)
freechart I: Dependency covered by dependencies from link dependence (gtk-update-icon-cache)
freechart I: Dependency covered by dependencies from link dependence (libjpeg)
freechart I: Dependency covered by dependencies from link dependence (libtirpc)
freechart I: Dependency covered by dependencies from link dependence (gcc-libs)
freechart I: Dependency covered by dependencies from link dependence (openssl)
freechart I: Dependency covered by dependencies from link dependence (gmp)
freechart I: Dependency covered by dependencies from link dependence (libxext)
freechart I: Dependency covered by dependencies from link dependence (iana-etc)
freechart I: Dependency covered by dependencies from link dependence (libutil-linux)
freechart I: Dependency covered by dependencies from link dependence (libthai)
freechart I: Dependency covered by dependencies from link dependence (perl)
freechart I: Dependency covered by dependencies from link dependence (libxrender)
freechart I: Dependency covered by dependencies from link dependence (wayland)
freechart I: Dependency covered by dependencies from link dependence (libtiff)
freechart I: Dependency covered by dependencies from link dependence (libxshmfence)
freechart I: Dependency covered by dependencies from link dependence (libgcrypt)
freechart I: Dependency covered by dependencies from link dependence (libdaemon)
freechart I: Dependency covered by dependencies from link dependence (libdrm)
freechart I: Depends as namcap sees them: depends=(wxgtk)
Many thanks!Hi it turns out that the SVN version is the most up to date which does not need to be patched as it has the right version numbers. I have created a new PKGBUILD.
# Maintainer: kso <keansum AT gmail DOT com>
pkgname=freechart-svn
pkgver=r3169
pkgrel=1
pkgdesc="Free powerful charting library based on wxWidgets."
arch=('x86_64' 'i686')
url="http://wxcode.sourceforge.net/components/freechart/"
license=('custom:"wxWindows"')
depends=('wxgtk')
makedepends=('subversion')
source=('svn+http://svn.code.sf.net/p/wxcode/code/trunk/wxCode/components/freechart/')
md5sums=('SKIP')
_svntrunk=http://svn.code.sf.net/p/wxcode/code/trunk/wxCode/components/freechart/
_svnmod=freechart
pkgver() {
cd "$_svnmod"
local ver="$(svnversion)"
printf "r%s" "${ver//[[:alpha:]]}"
build() {
cd "$srcdir"
msg "Connecting to SVN server...."
if [[ -d "$_svnmod/.svn" ]]; then
(cd "$_svnmod" && svn up -r "$pkgver")
else
svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
fi
msg "SVN checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_svnmod-build"
svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
# BUILD HERE
./configure --prefix=/usr
make
package() {
cd "$srcdir/$_svnmod-build"
make DESTDIR="$pkgdir/" install
# install LICENSE
install -D -m644 $srcdir/$_svnmod/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
I have uploaded onto the AUR. I have checked using namcap. Please let me know if there are any mistakes. Many thanks! -
First PKGBUILD - looking for review
Hello all,
I have created my first PKGBUILD for some new scientific computing libraries and corresponding examples related to my field. I am looking for input before submitting this to the authors for inclusion on their site (and possibly to the AUR if there ends up being more interest).
Anyway, here is what I have so far, which seems to work on my system:
PKGBUILD:
pkgname=ismrmrd-git
pkgver=20121030
pkgrel=1
pkgdesc="Libraries and examples for the proposed ISMRM Raw Data format"
url="http://ismrmrd.sourceforge.net"
arch=('any')
license=('unknown')
depends=('hdf5-fortran-cxx'
'boost-libs'
'xsd'
'xerces-c')
optdepends=('fftw: used to compile example programs'
'doxygen: only needed if you want to produce your own copy of the documentation')
makedepends=('unzip'
'git'
'cmake')
# install="${pkgname}.install"
# source=("http://www.syntax-on.com/static/$pkgname/$pkgname-$pkgver.tar.gz")
# source=("http://downloads.sourceforge.net/project/ismrmrd/src/${pkgname}_${pkgver}.zip")
source=("cmakelists.diff")
noextract=("${pkgname}_${pkgver}.zip")
md5sums=("9ec7ed899e488961826fa41da7109a84")
_gitroot="git://git.code.sf.net/p/ismrmrd/code"
_gitname="ismrmrd"
build() {
cd "${srcdir}"
# unzip ${pkgname}_${pkgver}.zip -d ${pkgname}-${pkgver}
msg "Connecting to GIT server..."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "Local files have been updated"
else
git clone $_gitroot "${srcdir}/$_gitname"
fi
msg "Received code from GIT or server timed out"
# stop CMakeLists.txt appending an unwanted dir to the CMAKE_INSTALL_PREFIX
# also prevent install of /usr/cmake/FindIsmrmrd.cmake
msg "Patching CMakeLists.txt to comply with Arch Packaging Standards..."
cd "${srcdir}/${_gitname}"
patch < ${startdir}/cmakelists.diff --forward
# start the build
mkdir "${srcdir}/${_gitname}/build" -p
cd "${srcdir}/${_gitname}/build"
msg "Starting cmake..."
cmake -DCMAKE_INSTALL_PREFIX=/usr ../
msg "Starting make..."
make
package() {
cd "${srcdir}/${_gitname}/build"
make DESTDIR="${pkgdir}/" install
cmakelists.diff
--- src/ismrmrd-latest/CMakeLists.txt 2012-10-30 11:48:03.332945241 -0500
+++ src/ismrmrd-latest/CMakeLists_mod.txt 2012-10-30 11:48:27.619612710 -0500
@@ -10,7 +10,7 @@
endif (WIN32)
-set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/ismrmrd)
+# set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/ismrmrd)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
find_package(XSD REQUIRED)
@@ -69,7 +69,7 @@
INSTALL(FILES ismrmrd.h ${XSDS_SOURCES} ismrmrd_hdf5.h ismrmrd_hdf5_datatypes.h ismrmrd_export.h DESTINATION include)
INSTALL(FILES schema/ismrmrd.xsd DESTINATION schema)
-INSTALL(FILES cmake/FindIsmrmrd.cmake DESTINATION cmake)
+# INSTALL(FILES cmake/FindIsmrmrd.cmake DESTINATION cmake)
INSTALL(TARGETS ismrmrd DESTINATION lib)
INSTALL(TARGETS ismrmrd_xsd DESTINATION lib)
I'm not using any .install file, is this something big I am missing? Again, this is my first time writing a PKGBUILD, so I appreciate any feedback. Thanks!Thanks - I will take note for future packages, or if I end up using a non-git version. makepkg seemed to not be able to handle the zip file itself, though. If I re-hosted the source myself in a tarball it worked, but on the authors' site I could only find it as a zip.
My main question is still about installation location, though. This typically installs itself in:
/usr/local/ismrmrd/bin
/usr/local/ismrmrd/lib
/usr/local/ismrmrd/include
/usr/local/ismrmrd/schema
/usr/local/ismrmrd/cmake
I was able to change this to:
/usr/bin
/usr/lib
/usr/include
/usr/schema
Obviously this prevents cmake/FindIsmrmrd.cmake from being installed at all (not sure this is OK or desirable), It also creates the /usr/schema directory, which I don't think is really standard. Where should I put such files? Should I instead install the whole package into /usr/opt/ismrmrd? It doesn't seem big enough to warrant that, but I don't know where else to put the schema and cmake directories and the associated files. Maybe in /usr/share?
Last edited by aganders3 (2012-11-07 20:20:40) -
New PKGBUILDs for calpp and cpyrit-calpp
Hello
I wanted to try the calpp backend for pyrit (a WPA cracking utility), but couldn't find them in either the official repositiories or in AUR. There for I have created new PKGBUILDs for these, they work on my system (x86_64 3.1.0-4-ARCH), but as these are my first ones I wanted to post them here for review before I upload them to AUR.
The main thing I have doubts about are the dependencies. I think I have listed them all but I'm not sure.
Here is the PKGBUILD for calpp:
# Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
pkgname=calpp
pkgver=0.90
pkgrel=2
pkgdesc="Library to allow writing ATI CAL kernels in C++"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/calpp/"
license=('GPL3')
depends=('amdstream' 'boost')
makedepends=('cmake')
source=("http://sourceforge.net/projects/calpp/files/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('efc3f519492ac8d3178fe42115ce3637')
_streamdir='/opt/amdstream'
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i "s|\$ENV{ATISTREAMSDKROOT}/lib|${_streamdir}/lib|g" CMakeLists.txt
sed -i "s|\$ENV{ATISTREAMSDKROOT}/include|/${_streamdir}/include/CAL|" CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
And here is the PKGBUILD for cpyrit-calpp:
# Maintainer: Martin R. <mr-ger [at] hotmail [dot] com>
pkgname=cpyrit-calpp-svn
pkgver=308
pkgrel=3
pkgdesc="CAL++ backend for accelerated attack against WPA-PSK authentication, development version"
url="http://code.google.com/p/pyrit/"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('python2' 'catalyst-utils' 'pyrit-svn')
makedepends=('calpp')
conflicts=('cpyrit-opencl-svn')
_svntrunk='http://pyrit.googlecode.com/svn/trunk'
_svnmod='cpyrit_calpp'
_caldir='/usr/include/CAL/'
build() {
svn co "${_svntrunk}/${_svnmod}"
cd "${_svnmod}"
sed -i "s|VERSION = '0.4.0-dev'|VERSION = '0.4.1-dev'|" setup.py
sed -i "s|CALPP_INC_DIRS = \[\]|CALPP_INC_DIRS = \[\'${_caldir}\'\]|" setup.py
LDFLAGS="" python2 setup.py build
package() {
cd "${srcdir}/${_svnmod}"
python2 setup.py install --root="${pkgdir}" --optimize=1
Thanks in advance
EDIT = Updated the PKGBUILDs
Last edited by ozon-eatar (2011-11-30 22:15:56)Thanks for the respones Stebalien! I have changed the things you pointed out and updated my first post.
I have also run namcap on both packages and their PKGBUILDs. The only thing namcap complains about on the PKGBUILDs are the lack of contributer tag, which I think is unnecessary as I'm listed as the maintainer.
On the cpyrit-calpp package namcap complains about unnecessary dependencies:
cpyrit-calpp-svn I: Depends as namcap sees them: depends=(catalyst-utils python2)
I tried this dep array with all packages listed before uninstalled (well, catalyst and libpcap I couldn't uninstall) and it didn't work. When I added 'calpp' to makedepends it worked, and it ran after I uninstalled calpp again.
As cpyrit-calpp-svn is a backend to the pyrit-svn package and pointless to install without pyrit-svn I added it back to the array. Might add that this is how the dep array looked before:
depends=('python2' 'openssl' 'zlib' 'libpcap' 'amdstream' 'catalyst' 'calpp' 'pyrit-svn')
This is what namcap is telling me about calpp:
calpp I: Depends as namcap sees them: depends=()
BUT it will neither build nor will it compile one of the examples without both amdstream and boost (not just boost-libs). Therefore I have not changed the dep array for calpp. -
Finding a PKGBUILD for the 2.6.21.4 kernel (for Asus EEE )
I'm trying to build a kernel that will support the Asus Eee's non-source drivers out of the box without ndiswrapper. I also would like to install the whole thing using my pacman. Is there any way to get a complete PKGBUILD for this kernel? If possible, I'd also like to get the associated patches, etc if possible.
I'm basing my hack on some things listed here:
http://cliffhacks.blogspot.com
I played with the CVS for awhile, but couldn't find a way to get the kernel 2.6.21.4 PKGBUILD, and I'm not sure if CVS would even do this.
After this, I'll have to compare the PKGBUILD with the config that Asus used on their kernel. We'll see how it goes. Thanks for any help or tips.lilsirecho wrote:
beniro;
Normally PKGBUILDS for kernels are not provided in arch.
However, one has been inserted into the aur mix by raymano and it is for kernel 2.6.23.9-1.
What are you talking about - I thought the PKGBUILDs were publicly available. Atleast I can see them - and you could certainly create your own although with a little difficulty for such an early kernel - but It should be possible -
Help to create a pkgbuild for harpia
hi i want to create a pkgbuild for the harpia program http://s2i.das.ufsc.br/harpia/en/home.html
searching in the aur and in the net i couldn't find something
harpia exist for ubuntu and the .deb file is hosted here http://packages.ubuntu.com/oneiric/all/harpia
can someone help me create a working pkgbuild for arch through the .deb file
i tried to create a first approach by creating the following PKGBUILD:
pkgname=harpia
pkgver=1.1
pkgrel=1
pkgdesc="Image Processing/Computer Vision Automatic Prgm. Tool"
arch=('any')
url="http://s2i.das.ufsc.br/harpia/en/home.html"
license=('GPL2')
depends=('')
source=("http://archive.ubuntu.com/ubuntu/pool/universe/h/harpia/${pkgname}_${pkgver}-0ubuntu1.1_all.deb")
md5sums=('56c6cb146ea5652e41b77506ad8ec263')
build() {
bsdtar -C "$pkgdir" -xvf data.tar.gz
however when i am running the program i am taking the following error:
Traceback (most recent call last):
File "/usr/bin/harpia", line 32, in <module>
from harpia import harpiagcfrontend
ImportError: No module named harpia
i guess that the problem might have to do with some dependencies or with the python library, can you provide me with some tips
thanksWell, I'm not going to tell you every little thing .
I found a likely candidate for python-gnome2 in pacman using a judicious choice of search terms. As for the rest, I suggest you go to the Debian or Ubuntu package lists. The Debian ones are easy to find in Google. These lists contain lots of information about what packages contain and what they provide and where the source code is from.
Do some detective work, you will figure it out. -
[Solved] How to include examples for an AUR package
Hi,
I read the wiki pages how to create packages for the AUR,
but I am not sure how to include examples which should be placed
in /usr/share/doc/<package>/examples/ after the package was installed.
Should all files be mentioned in the "sources" variable of the PKGBUILD
or is it better to copy them via the .install file?
Last edited by fana (2012-01-22 17:38:41)fana wrote:Ah, I see. So a good way would be just providing a tarball with all the examples and add that tarball to the source array
Yup, I don't see how are these are examples different [1] from the other files.
[1] Well, apart from stuff like https://bugs.archlinux.org/task/25998 ;P -
PKGBUILD for custom kernel issue
Hi all,
Last night I was putting together a PKGBUILD for a kernel I'd like to compile that has the ck patchset, grsecurity (latest testing), and had broadcom-wl on it already so I don't have to keep reinstalling it from AUR and doing depmod each time as it keeps making me have to find an ethernet cable. I used the kerne26 Arch PKGBUILD as a base and included parts of kernel-netbook for broadcom-wl, kernel26-grsecurity, and kernel26-ck and altered name variables and links etc so it all works and all sources are downloaded. I also got the two .patch files (semaphore and something else) from the kernel-netbook tarball to build the thing with, I don't know if it would work without them.
However when I get into the build() a few patches are applied before I get messages about patches already applied or reversed, and then it says build failed because of an error, I can't tell which package is causing thins or why (it all goes by too fast, and the error says failed without reason, and the reversed patch messages are what is immediately previous to it). I have not yet gone all the way through the pkgbuild - especially towards the end, and I felt that the standard setup of init file system creation and such were ok, and if anything does need altering about it, I can deal with it once I get these first troubles solved.
Below is my pkgbuild so far. Hopefully there are people out there who can aid me with this.
Thanks,
Ben.
# Maintainer: Ben Ward <[email protected]>
pkgbase="kernel26"
# pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
pkgname=kernel26-custom # Build kernel with a different name
#Base kernel info
_kernelname=${pkgname#kernel26}
_basekernel=2.6.38
pkgver=${_basekernel}.3
pkgrel=1
#ARCH patch info
_archpatchver=1
_archpatchname="patch-${pkgver}-${_archpatchver}-ARCH"
#_archpatchname="patch-${pkgver}-1-ARCH"
#grsecurity info
_grsec=2.2.2
_timestamp=201104182227
#Broadcom-wl info
_broadcom_ver=5.100.82.38
_broadcom="hybrid-portsrc_x86_32-v${_broadcom_ver//./_}"
#ck-patch info
_ckpatchversion=3
_ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.kernel.org"
options=(!strip)
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
ftp://ftp.archlinux.org/other/kernel26/${_archpatchname}.bz2
http://grsecurity.net/test/grsecurity-${_grsec}-${pkgver}-${_timestamp}.patch
http://www.broadcom.com/docs/linux_sta/${_broadcom}.tar.gz
http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/${_basekernel}/${_basekernel}-ck${_ckpatchversion}/${_ckpatchname}.bz2
"semaphore.patch"
"mutex-sema.patch"
# the main kernel config files
config config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset)
md5sums=('7d471477bfa67546f902da62227fa976'
'b3677121c4b5efcb8128c2000788d0aa'
'5b14b6eb2cdcb074905d4974437c4df6'
'a19024797f192fe21a468de80c101d8a'
'c0074a1622c75916442e26763ddf47d0'
'88d5b3e0622f8c48dad19ab9ac3c16f0'
'aee89fe7f034aea2f2ca95322774c1b5'
'21ce3f7967d7305064bf7eb60030ffea'
'f66543886835ab8599b29cd0c48aa66d'
'd866bcc06672fee17736bd5022f700fe'
'25584700a0a679542929c4bed31433b6')
build() {
cd ${srcdir}/linux-$_basekernel
# Apply kernel.org patch to basekernel
msg "Checking basekernel is ip to date..."
if [[ "${_basekernel}" != "${pkgver}" ]]; then
msg "Patching source with upstream patch..."
patch -Np1 -i "${srcdir}/patch-${pkgver}" || return 1
fi
# Add -ARCH patches
# See http://projects.archlinux.org/linux-2.6-ARCH.git/
msg "Patching Kernel with ARCH patches..."
patch -Np1 -i ${srcdir}/${_archpatchname}
# Add ck patch
msg "Patching Kernel with ck patches..."
patch -Np1 -i ${srcdir}/${_ckpatchname}
# Add grsecurity patch
msg "Patching kernel with grsecurity testing branch..."
if [ "$CARCH" = "x86_64" ]; then
cat ../config.x86_64 >./.config
else
cat ../config >./.config
fi
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
fi
# get kernel version
make prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
make nconfig # new CLI menu for configuration
#make xconfig # X-based configuration
#make oldconfig # using old config from previous kernel version
# ... or manually edit .config
# stop here
# this is useful to configure the kernel
#msg "Stopping build"
#return 1
yes "" | make config
# build!
make ${MAKEFLAGS} bzImage modules
package_kernel26() {
pkgdesc="The Linux Kernel and modules"
groups=('base')
backup=(etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.12-2' 'mkinitcpio>=0.6.8-2')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
'alsa-driver' 'ieee80211' 'hostap-driver26'
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'nouveau-drm')
install=kernel26.install
optdepends=('crda: to set the correct wireless channels of your country')
KARCH=x86
cd ${srcdir}/linux-$_basekernel
# get kernel version
_kernver="$(make kernelrelease)"
mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot}
make INSTALL_MOD_PATH=${pkgdir} modules_install
cp System.map ${pkgdir}/boot/System.map26${_kernelname}
cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
# # add vmlinux
install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
# install fallback mkinitcpio.conf file and preset file for kernel
install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
# set correct depmod command for install
sed \
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
-i $startdir/kernel26.install
sed \
-e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
-e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
-e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
-i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
# remove build and source links
rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
# remove the firmware
rm -rf ${pkgdir}/lib/firmware
# gzip -9 all modules to safe 100MB of space
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
##Section: Broadcom-wl
msg "Compiling broadcom-wl module:"
cd ${srcdir}/
#patching broadcom as broadcom-wl package on AUR
patch -p1 < license.patch
patch -p1 < semaphore.patch
patch -p1 < mutex-sema.patch
make -C ${srcdir}/linux-$_basekernel M=`pwd`
install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko
package_kernel26-headers() {
pkgdesc="Header files and scripts for building modules for kernel26"
mkdir -p ${pkgdir}/lib/modules/${_kernver}
cd ${pkgdir}/lib/modules/${_kernver}
ln -sf ../../../usr/src/linux-${_kernver} build
cd ${srcdir}/linux-$_basekernel
install -D -m644 Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Makefile
install -D -m644 kernel/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
install -D -m644 .config \
${pkgdir}/usr/src/linux-${_kernver}/.config
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video xen; do
cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
done
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
# fix permissions on scripts dir
chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
if [ "$CARCH" = "i686" ]; then
cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
fi
cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
# add headers for lirc package
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
done
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
# add dm headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
# add inotify.h
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
# add wireless headers
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/9912
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
# add dvb headers for external modules
# in reference to:
# http://bugs.archlinux.org/task/11194
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
# in reference to:
# http://bugs.archlinux.org/task/13146
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
# add dvb headers
# in reference to:
# http://bugs.archlinux.org/task/20402
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb
cp drivers/media/dvb/dvb-usb/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends
cp drivers/media/dvb/frontends/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners
cp drivers/media/common/tuners/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/
# add xfs and shmem for aufs building
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
# add headers vor virtualbox
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for broadcom wl
# in reference to:
# http://bugs.archlinux.org/task/14568
cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
# add headers for crypto modules
# in reference to:
# http://bugs.archlinux.org/task/22081
cp -a include/crypto $pkgdir/usr/src/linux-${_kernver}/include/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
done
chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
# strip scripts directory
find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "$binary")" in
*application/x-sharedlib*) # Libraries (.so)
/usr/bin/strip $STRIP_SHARED "$binary";;
*application/x-archive*) # Libraries (.a)
/usr/bin/strip $STRIP_STATIC "$binary";;
*application/x-executable*) # Binaries
/usr/bin/strip $STRIP_BINARIES "$binary";;
esac
done
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
package_kernel26-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
cd ${srcdir}/linux-$_basekernel
mkdir -p $pkgdir/usr/src/linux-$_kernver
mv Documentation $pkgdir/usr/src/linux-$_kernver
find $pkgdir -type f -exec chmod 444 {} \;
find $pkgdir -type d -exec chmod 755 {} \;
# remove a file already in kernel26 package
rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
I wonder if localyesconfig would take care of broadcom-wl for me...
Last edited by Ben9250 (2011-04-20 00:12:44)Thank you. I guess trying the abs method wouldn't hurt. My main issue was configuration. I've only just skimmed the PKGBUILD so I'm not aware of how it handles it. I suppose I could write my own as described in the wiki as well. Thanks again.
Edit: Further research has revealed to me that the kernel headers are merely there for when the full source tree isn't. Seeing as the full tree is present in my case, the headers are unnecessary. I may take graysky's advice though and use pacman to manage my kernel.
Last edited by smithr.michael1997 (2011-03-31 02:17:29) -
Can anyone make a PKGBUILD for Novel iFolder and Novel consoleone ?
Like in subject. I tried install it from Novel homepage, but i have problem with make dependiences and this two package, can anyone make good PKGBUILD for new version ? In AUR i found PKGBUILD's but the mirror doesn't work and i can't find another mirror. Thanks Igor. Have a nice day !
Yes, but i saw many rpm package, and source code. If you talk about license there is oportunity to get free license for 30 or 60 day's. Thanx for respone.
-
Pkgcheck - Check your PKGBUILDs for upstream releases
Hey,
I wrote a small Python script which checks my PKGBUILD repository (usually several directories, one for every package containing the PKGBUILD) for upstream releases.
One could use it like this:
It parses the PKGBUILDs and compares their versions with the one in the AUR and the upstream version. To determine the upstream version, it uses two techniques:
- Add additional attribute to the PKGBUILD which provides instructions on how to fetch the upstream version number, e.g.:
_watch=('http://live-installer-autoupdate.s3.amazonaws.com/latest_version.js','([\d.]*\d+)')
As you can see, it fetches the webpage and applies an regex on it to return a version number as string.
- Given only an url or an url in the _watch attribute without regex, it checksums the page and compares the checksums on the next scan. To do this, pkgcheck stores a session file in ~/.local/share/pkgcheck.session with the following format:
[devolo-dlan-cockpit]
md5 = 56d7df8e89b55055b7285346d02304ed
lastchecked = 1367842691.058724
[ttyrpld]
lastchecked = 1367843163.295527
md5 = 05f1f56a869444bfe9c18e146120230a
Without any additional argument (just a dir/file), pkgcheck should only return package stats for outdated entries in a tabular format. If you supply -a, pkgcheck lists all scanned packages, even up-to-date ones.
Please check it out at https://github.com/onny/pkgcheck and forgive me the bad quality of the code. It should be more a demonstration on how useful such a tool can be.
My inspiration for this tool was pkgbuild-watch (https://bbs.archlinux.org/viewtopic.php?pid=1116279) which, at least for me, was not really intuitive to use.
Dependencies:
yaourt -S parched-git python3-aur python-requests python-xdg
Best regards,
onny
Last edited by onny (2013-05-06 13:28:55)karol wrote:It reminds me a bit of https://mailman.archlinux.org/pipermail … 17048.html
Interesting but different approach. Thank you for noticing, I'll consider to add this method in the next versions of pkgcheck. -
I made pkgbuilds for Maya 8.5 and 2008 (32 & 64)
Hello,
I made these pkgbuilds for my sister to use on our home machines, but figured someone may find them useful. Of course, this assumes you have the official Maya for Linux CD to copy the RPM's from and a license; it just converts Autodesk's stuff into Arch's format.
Update Mon May 17, 2010: I cleaned up the pkgbuilds for Maya 2008 dramatically, and made them safe to use now that I have a better idea of what I'm doing. I posted the new packages (8.5 and 2008 respectively) to AUR here:
http://aur.archlinux.org/packages.php?ID=37259
http://aur.archlinux.org/packages.php?ID=37257
IMPORTANT: A couple parts of the BELOW (this does NOT apply to the above pkgbuild in AUR) maya.install file may be considered potentially dangerous and you should look it over before running it. Much of this project was done on zero sleep, so you've been warned. That said, it worked on all 3 computers I intended it to (1 i686, 2 x86_64).
There are 4 packages. Two for maya2008, and two for maya8.5. There's a normal version and split version for each (splits the files identically to the rpm's). I HIGHLY recommend the normal, non-split versions, but everything is there if needed.
You can find the OLD stuff here [only use if the AUR one doesn't work for you]:
http://www.mediafire.com/?sharekey=6884 … 49b5870170
The maya page on the wiki suggests doing ln -s /usr/bin/tcsh /bin/csh after tcsh is installed, but I didn't find this necessary iirc. If you have problems with running it, try the following link.
http://wiki.archlinux.org/index.php/Maya
Last edited by FrozenFox (2010-05-17 22:54:17)Updated to add libxinerama as a dependency (and re-orphaned). Based on the error, I'm unsure that is the correct course of action, however. As my sister has moved on to a more current version of maya which I don't think has linux support (or if it does, I have no idea where it is), I no longer have the 8.5/2008 cd's to be sure nothing messed up and be sure it works, so it would be appreciated if you could test it or adopt it.
EDIT: On thinking about it, I don't think that is the correct way to do it, so..
An extended question for you:
Apcw appears to be the maya product activation wizard, not the main product. Did you have to install lib32-xinerama or just libxinerama on your x64 to make apcw work? If so, I guess they used a 32 bit activator for the 64 bit program for whatever reason. What happens post-activation with a) both libraries installed b) neither installed c) only libxinerama installed d) only lib32-libxinerama installed ?
I suspect the correct response at this point would be to remove libxinerama as a dependency and put libxinerama or lib32-libxinerama as optdepends (based on architecture) for those who need that to activate it through the wizard.
Thanks for your time and letting me know.
Last edited by FrozenFox (2010-08-31 20:44:27) -
Updated PKGBUILD for vmware-server-modules 2.0.2
Hi.
I have updated the PKGBUILD for the vmware-server-modules and added patches for kernel 2.6.35 and 2.6.36.
The package is currently marked as an orphan, so I'll have to adopt it do upload the changes, right?
Could someone please take a look at this, and say if it is good enough.
I haven't really made any changes other than adding patches for kernel 2.6.35 and 2.6.36, but since there are some 'not so positive comments' following this package in AUR maybe there is more that should be done?
It works on my x86_64 2.6.36-arch install.
pkgname=vmware-server-modules
pkgver=2.0.2
pkgrel=4
pkgdesc="Kernel modules for VMware Server"
arch=('i686' 'x86_64')
url="http://www.vmware.com/products/server/"
license=('custom')
depends=('kernel26>=2.6.32')
makedepends=('kernel26-headers')
conflicts=('vmware-workstation-modules' 'vmware-player-modules')
install=vmware-server-modules.install
_kernver=`uname -r`
source=(VMware-server-2.0.2-203138-update-2.patch vmware-server-modules-autoconf.patch vmware-server-modules-vsock-kernel2.6.35.patch vmware-server-modules-vmmon-kernel2.6.36.patch)
md5sums=('774a6361a443834205bc0172498bb2c0'
'91ea48c3d4779f531cb942be09248dba'
'3325f1b34eb21ee7d4cceb5f0da852f1'
'bfd62533e023b696cf7ff45379732b71')
case ${CARCH} in
i686)
source=(${source[@]} 'VMware-server-2.0.2-203138.i386.tar.gz')
md5sums=(${md5sums[@]} '6eb844d1ab4aed6128438e5f587d10bb');;
x86_64)
source=(${source[@]} 'VMware-server-2.0.2-203138.x86_64.tar.gz')
md5sums=(${md5sums[@]} 'cc7aef813008eeb7150c21547d431b39');;
esac
build() {
cd "$srcdir/vmware-server-distrib/lib/modules/source"
for module in *.tar; do
tar xf $module
done
cd "$srcdir/vmware-server-distrib"
# patch
patch -p1 < ../VMware-server-2.0.2-203138-update-2.patch
patch -p2 < ../vmware-server-modules-autoconf.patch
if [[ ${_kernver:0:6} == "2.6.35" ]]; then
patch -p1 < ../vmware-server-modules-vsock-kernel2.6.35.patch
fi
if [[ ${_kernver:0:6} == "2.6.36" ]]; then
patch -p1 < ../vmware-server-modules-vsock-kernel2.6.35.patch
patch -p1 < ../vmware-server-modules-vmmon-kernel2.6.36.patch
fi
cd "$srcdir/vmware-server-distrib/lib/modules/source"
for module in vmci vsock vmmon vmnet; do
make -C $module-only HEADER_DIR=/lib/modules/$_kernver/build/include || \
return 1
install -D -m644 $module-only/$module.ko \
"$pkgdir/lib/modules/$_kernver/misc/$module.ko"
done
# License
install -D -m644 "$srcdir/vmware-server-distrib/doc/EULA" \
"$pkgdir/usr/share/licenses/vmware-server-modules/EULA"
install -D -m644 "$srcdir/vmware-server-distrib/doc/open_source_licenses.txt" \
"$pkgdir/usr/share/licenses/vmware-server-modules/open_source_licenses.txt"
sed -i -e "s|KERNEL_VERSION='.*'|KERNEL_VERSION='$_kernver'|" \
"$startdir/vmware-server-modules.install"i don'T think that there will ever be a PKGBUILD for VMWare, because it's commercial software... but i posted alot of hints in the "Package Configuration Problems" Forum...
http://bbs.archlinux.org/viewtopic.php? … highlight=
nearly each posible problem is described there... if u still have problems, post ur errors and anything u got about it there, and i try to help u..... -
Hello all,
I was searching for a driver for my ricoh webcam (05ca:1870) in my hp pavilion dv1000.
I know that here http://bitbucket.org/ahixon/r5u87x/ there's a user space tool manager cameras based on Ricoh R5U87x chipsets though uvcvideo, but my webcam did not work (no /dev/video0).
But searching a bit more i found this http://www.palmix.org/r5u870-en.html, here there's an update for the old r4u870 driver to build with the 2.6.30 kernel (32 and 64 bits). I modified the PKGBUILD in http://aur.archlinux.org/packages.php?ID=15226.
The package is builded and installed ok, but after I activate the module (with modprobe r5u870) and tested with gstreamer (gst-launch-0.10 v4l2 ! ffmpegcolorspace ! autovideosink) it only capture one image and then gst-launch-0.10 shows a bunch of:
(gst-launch-0.10:31682): GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed
I want to know if someone has this type webcam and can try this packages, and of course modify the PKGBUILD to add support both i686 and x86_64.
If someone made it work please send me how.
# Contributor: Alessandro Sagratini <[email protected]>
# Contributor: Matias De la Puente <[email protected]>
_kernver=2.6.30-ARCH
pkgname=r5u870
pkgver=0.11.3
pkgrel=1
pkgdesc="Linux device driver for Ricoh R5U870 OEM cameras."
arch=('i686')
url="http://www.palmix.org/r5u870-en.html"
license=('GPL2')
install=r5u870.install
depends=('kernel26>=${_kernver}')
source=(http://www.palmix.org/download/r5u870_k2.6.30_i386.tar.bz2)
md5sums=('8f285c1bc28a6dc32835d1973f2d7b6c')
build() {
cd $startdir/src/$pkgname
sed -i -e 's/\/sbin\/depmod -a//g' Makefile
make || return 1
#Install kernel module
install -D -m644 usbcam/usbcam.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/media/video/usbcam.ko
install -D -m644 r5u870.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/media/video/r5u870.ko
#Install firmwares
for i in *.fw; do
install -D -m 644 $i $startdir/pkg/lib/firmware/$i
done
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/r5u870.installI copied r5u870.install from the aur package, then tried your PKGBUILD, only modifying arch to x86_64. Got a make error....
make[1]: Entering directory `/usr/src/linux-2.6.30-ARCH'
CC [M] /home/firecat53/src/webcam/src/r5u870/r5u870.o
CC [M] /home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_dev.o
CC [M] /home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.o
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c: In function 'usbcam_v4l_ioctl':
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c:1163: warning: unused variable 'udp'
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c: At top level:
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c:1199: error: unknown field 'compat_ioctl' specified in initializer
/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.c:1199: error: 'v4l_compat_ioctl32' undeclared here (not in a function)
make[3]: *** [/home/firecat53/src/webcam/src/r5u870/usbcam/usbcam_fops.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/home/firecat53/src/webcam/src/r5u870/usbcam] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/firecat53/src/webcam/src/r5u870] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-ARCH'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Any ideas?
Scott
Maybe you are looking for
-
Photoshop 2014 keeps crashing under Windows 8.1 on a Surface Pro.
Team, Photoshop 2014 keeps crashing under Windows 8.1 on a Surface Pro. I have tired. 1. Updating Intel Graphics Card. (unsuccessful) 2. Logging in and out of creative cloud. (unsuccessful) See log below. Faulting application name: Photoshop.exe, ver
-
Disk Permissions getting damaged too regularly for comfort
Software started behaving unpredictably on my Mac so I run a Repair Permissions. I used to only have to run this about once every 6 months but now I am paranoid so run it once a week and now there are a **** of a lot of permissions need repairing jus
-
Difference between Yammer and Newsfeed in 2013
Major benefits using Yammer over Newsfeed in 2013
-
Unable to Update CS5 Vulnerabilities
We recently (re-)installed Adobe CS5 Design Premium. Yesterday, Kaspersky Internet Security 2012 (KIS) indicated we have several (security) vulnerabilities: Adobe Flash Player 10.1 r52 * c:\program files...\Adobe\Adobe Flash Catalyst CS5\player\win\
-
CS6 hangs during infuriatingly simple tasks
For the fifth time today, Premiere has hung on me. Fifth time today, and probably the ninth time in this project. I'm working solely on H.264 Canon 600D .movs, no fancy effects, no third party plug-ins, just a straight forward edit with some standard