vine-users ML アーカイブ



[vine-users:056873] Re: sa を使いたい& psacct をリビルトできません

  • From: "Satoshi IWAMOTO" <iwamoto@xxxxxxxxxxxxxxxxxxx>
  • Subject: [vine-users:056873] Re: sa を使いたい& psacct をリビルトできません
  • Date: Thu, 12 Dec 2002 19:35:56 +0900
 いわもとです。

In Wed, 11 Dec 2002 16:36:17 +0900
<[vine-users:056850] sa を使いたい& psacct をリビルトできません>
<Susumu Tanimura/谷村 晋 <stanimura-ngs@xxxxxxxxxx>> Wrote:

> psacct-6.3.2-19.src.rpm
> をダウンロードしてリビルドを試みたところ、
> [snip]
> 上記のエラーでリビルドに失敗しました。
>

 spec file に以下の patch 当てればいけません?
 とりあえず、こちらの環境では build / install / それっぽく動作 してます。
 %post は動いてないみたいだけど(^^;

 Conflicts: initscripts < 6.55 があるのが気になりますが、
 とりあえず comment out しちゃってます。


----------------------------------------------------------------------------
--- psacct.spec	Wed Mar 27 05:24:22 2002
+++ psacct.spec_vine	Thu Dec 12 19:27:19 2002
@@ -2,18 +2,12 @@
 # Broken RH Alpha buildsystem is wasting my time
 Excludearch: alpha

-%define FHS_compliant 1
-
-%if %{FHS_compliant}
 %define accounting_logdir	/var/account
-%else
-%define accounting_logdir	/var/log
-%endif

 Summary: Utilities for monitoring process activities.
 Name: psacct
 Version: 6.3.2
-Release: 19
+Release: 19v
 License: GPL
 Group: Applications/System
 Source: ftp://ftp.gnu.org/pub/gnu/acct-6.3.2.tar.gz
@@ -31,7 +25,7 @@

 # This conflict is to avoid psacct being forced on by old initscripts now that
 # we have a proper initscript in place. initscripts 6.55 and later are fixed.
-Conflicts: initscripts < 6.55
+# Conflicts: initscripts < 6.55

 %description
 The psacct package contains several utilities for monitoring process
@@ -45,16 +39,11 @@
 %prep
 %setup -q -n acct-%{version}

-%if ! %{FHS_compliant}
-%patch0 -p0 -b .config
-%endif
+# %patch0 -p0 -b .config
 %patch1 -p1 -b .psacct-exit
 %patch2 -p0 -b .64bit-fixes

 %build
-%if ! %{FHS_compliant}
-autoconf
-%endif

 %configure
 sed -e "s/\/\* #undef HAVE_LINUX_ACCT_H \*\//#define HAVE_LINUX_ACCT_H/" config.h > config.h.new
@@ -120,9 +109,7 @@

 %files
 %defattr(-,root,root)
-%if %{FHS_compliant}
-%dir /var/account
-%endif
+%dir %{accounting_logdir}
 /etc/rc.d/init.d/psacct
 %attr(0600,root,root)	%config %{accounting_logdir}/pacct
 %attr(0644,root,root)	%config(noreplace) /etc/logrotate.d/*
@@ -140,6 +127,10 @@
 %{_infodir}/accounting.info.gz

 %changelog
+* Thu Dec 12 2002 Satoshi IWAMOTO <satoshi.iwamoto@xxxxxxxxxxx>
+- 6.3.2-19v
+- Rebuild for Vine 2.5/2.6
+
 * Tue Mar 27 2002 Mike A. Harris <mharris@xxxxxxxxxx> 6.3.2-19
 - Made initscript touch/chmod accounting file if it is not present during
   startup, to ensure accounting works properly when enabled.
----------------------------------------------------------------------------

-------------------------------------------
  e-mail      : iwamoto@xxxxxxxxxxxxxxxxxxx
  Nifty-Serve : satoshi.iwamoto@xxxxxxxxxxx
  岩本 敏 (satoshi IWAMOTO)
-------------------------------------------
離れえぬよう、流されぬよう、ぎゅっと…