From 378c8dbafe89e22ad8ce3463968c366c4d745d4d Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 5 Nov 2007 17:25:02 +0000 Subject: Add acct from OE, for ubootchart git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3070 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta-extras/packages/acct/acct_6.3.99+6.4pre1.bb | 9 ++++++ .../packages/acct/files/cross-compile.patch | 34 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 meta-extras/packages/acct/acct_6.3.99+6.4pre1.bb create mode 100644 meta-extras/packages/acct/files/cross-compile.patch diff --git a/meta-extras/packages/acct/acct_6.3.99+6.4pre1.bb b/meta-extras/packages/acct/acct_6.3.99+6.4pre1.bb new file mode 100644 index 000000000..078013c39 --- /dev/null +++ b/meta-extras/packages/acct/acct_6.3.99+6.4pre1.bb @@ -0,0 +1,9 @@ +LICENSE = "GPL" +DESCRIPTION = "GNU Accounting Utilities - user and process accounting." + +SRC_URI = "http://www.physik3.uni-rostock.de/tim/kernel/utils/acct/acct-6.4-pre1.tar.gz \ + file://cross-compile.patch;patch=1" + +S = "${WORKDIR}/acct-6.4-pre1" + +inherit autotools diff --git a/meta-extras/packages/acct/files/cross-compile.patch b/meta-extras/packages/acct/files/cross-compile.patch new file mode 100644 index 000000000..78b57104c --- /dev/null +++ b/meta-extras/packages/acct/files/cross-compile.patch @@ -0,0 +1,34 @@ +diff -ur acct-6.4-pre1.org/configure.in acct-6.4-pre1/configure.in +--- acct-6.4-pre1.org/configure.in 2006-01-07 23:56:46.000000000 +0200 ++++ acct-6.4-pre1/configure.in 2006-08-03 21:16:17.000000000 +0300 +@@ -87,6 +87,10 @@ + ACCTON_MAN=accton.8 + LASTCOMM_MAN=lastcomm.1 + SA_MAN=sa.8 ++ WTMP_FILE_LOC=/var/log/wtmp ++ ACCT_FILE_LOC=/var/account/pacct ++ SAVACCT_FILE_LOC=/var/account/savacct ++ USRACCT_FILE_LOC=/var/account/usracct + AC_DEFINE(HAVE_ACUTIME, , + [Define if has the AC_UTIME field.]) + AC_DEFINE(ACUTIME_COMPT, , +@@ -130,6 +134,10 @@ + ACCTON_MAN=accton.8 + LASTCOMM_MAN=lastcomm.1 + SA_MAN=sa.8 ++ WTMP_FILE_LOC=/var/log/wtmp ++ ACCT_FILE_LOC=/var/account/pacct ++ SAVACCT_FILE_LOC=/var/account/savacct ++ USRACCT_FILE_LOC=/var/account/usracct + AC_HEADER_EGREP(ac_utime, sys/acct.h, + AC_DEFINE(HAVE_ACUTIME, , + [Define if has the AC_UTIME field.]) +@@ -277,7 +285,7 @@ + } + ], . ./locs; rm locs, + echo "Error -- could not locate your wtmp and acct files."; exit 1, +- echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ) ++ echo "Cross-compiling - cannot find out accounting file locations - using Linux defaults."; ) + AC_TYPE_PID_T dnl for sys/acct.h + AC_TYPE_UID_T dnl same as above + AC_TYPE_SIZE_T -- cgit v1.2.3