[Shorewall-users] Building rpm as user

Ajay Ramaswamy ajayr@krithika.net
Sun, 20 Jan 2002 10:50:54 +0530 (IST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--8323328-1549469683-1011504054=:13896
Content-Type: TEXT/PLAIN; charset=US-ASCII

Tom,
I have patched the install.sh to allow the building of the rpm as a user 
other than root. This is OK since in the rpm spec file we explicitly set 
the ownership and file permissions.

Indeed redhat have gone so far as to allow the building of the kernel as a 
normal user, up until version 6.2 you had to be root to build many things 
including dev, kernel etc

regards

Ajay

--8323328-1549469683-1011504054=:13896
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="shorewall-rpm-non-root.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0201201050540.13896@mail.1ar.org>
Content-Description: 
Content-Disposition: attachment; filename="shorewall-rpm-non-root.diff"

ZGlmZiAtTmF1ciBzaG9yZXdhbGwtMS4yLjMvaW5zdGFsbC5zaCBzaG9yZXdh
bGwtMS4yLjMtYXIvaW5zdGFsbC5zaA0KLS0tIHNob3Jld2FsbC0xLjIuMy9p
bnN0YWxsLnNoCVR1ZSBKYW4gMTUgMjE6MDE6NTkgMjAwMg0KKysrIHNob3Jl
d2FsbC0xLjIuMy1hci9pbnN0YWxsLnNoCVN1biBKYW4gMjAgMTA6Mzg6Mjgg
MjAwMg0KQEAgLTEwOCw3ICsxMDgsNyBAQA0KIGluc3RhbGxfZmlsZV93aXRo
X2JhY2t1cCgpICMgJDEgPSBzb3VyY2UgJDIgPSB0YXJnZXQNCiB7ICAgIA0K
ICAgICBiYWNrdXBfZmlsZSAkMg0KLSAgICBydW5faW5zdGFsbCAtbyByb290
IC1nIHJvb3QgLW0gMDU0NCAkMSAkezJ9DQorICAgIHJ1bl9pbnN0YWxsIC1v
ICRPV05FUiAtZyAkR1JPVVAgLW0gMDU0NCAkMSAkezJ9DQogfQ0KIA0KICMN
CkBAIC0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