Re: Where is ifconfig in SuSe 10.1?



On Sun, 27 Aug 2006, houghi <houghi@xxxxxxxxxxxxxxxxxx> wrote:-

David Bolt wrote:
The latter is one I had considered, except putting the symlink in
/usr/bin, but decided against it. If I need to use ifconfig as a normal
user, I just include the path.

I just run as root all the time. :-)

And you even know that's a no-no as well...

<snip>

Just in case you're wondering, yes I am having fun making lots of small,
quite superfluous packages. One example is the one making the symlink
for traceroute. And all this in the name of learning more about RPM and
building spec files.

I once was also interested in learning about this, but each and every
question I asked about examples and how to do easy packaging where answerd
by: RTFM.

In a way, I can understand. It's a way of figuring out if those that ask
the questions are actually serious about learning or not. Those that
want to learn are likely to find the answer that way, and if they still
have some questions or don't understand something, can explain just what
they have a problem with.

Another answer was that I first must become a specialist
before I could asnwer questions.

I can honestly say I'm not a specialist but can answer some questions. I
still have some questions I could do with answering but am slowly
finding the answers myself.


The st00pid thing is that when you look around openSUSE.org, you can
find examples on how to pacvkage GNOME or KDE package¹s, but when you
just want to package a script, the answer was: sorry, it is not possible
to make an example, because ther are so many thing to consider, please
first learn about RPM.

Which is completely wrong. Packaging a script is about the easiest thing
you can do. It wouldn't require a %build section, the %install section
would contain maybe a couple of lines, as would the %files section. For
a single script, you'd only require something like this:

%prep
%setup -q

%install
mkdir -p %{buildroot}/%{_bindir}
install -m755 script.sh %{buildroot}/%{_bindir}

%files
%{_bindir}/script.sh


Regards,
David Bolt

--
Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/
AMD1800 1Gb WinXP/SUSE 9.3 | AMD2400 256Mb SuSE 9.0 | A3010 4Mb RISCOS 3.11
AMD2400(32) 768Mb SUSE 10.0 | Falcon 14Mb TOS 4.02 | A4000 4Mb RISCOS 3.11
AMD2600(64) 512Mb SUSE 10.0 | | RPC600 129Mb RISCOS 3.6
.



Relevant Pages

  • Re: Where is ifconfig in SuSe 10.1?
    ... also be a little more complex, all depending on just what the script uses. ... If it's doing more complex things, and relies on other packages, then those would have to be manually added to the Requires: otherwise rpm will happily install a package where it doesn't know the script relies on other, not yet installed, packages. ... see the questions that e.g. jdd asked in the packaging mailinglist. ...
    (alt.os.linux.suse)
  • Re: Where is ifconfig in SuSe 10.1?
    ... will happily install a package where it doesn't know the script relies ... packaging. ...
    (alt.os.linux.suse)
  • Re: Attn : Dave Jones Re: I just want one more option in the FC Kernels (Dave Jones)
    ... The point is that you install a packaged distribution and it comes up ... distribution is just a matter of some duplicated work in the packaging ... > CentOS/RHEL base totally makes more sense to me than Fedora Core 3 as it ...
    (Fedora)
  • Re: install software
    ... which comes with AIX 5.2 ML02 Install CD's. ... > such knowledge was acquired when a developer was reading his/her AIX ... LPP packaging excited me when I looked into it, ... > alternative means of communication. ...
    (AIX-L)
  • Re: CentOS for newbies desktop? [Was: Re: Fedora Core ... problem]
    ... packaging and admin techniques that would make a usable desktop ... People who are computer savvy to some degree (or not that much savvy in one case -- but the lady has learned Red Hat first in times when it was still Red Hat, and then she got Windows with the new computer, and now she goes around and notalgically remembers about beautfy of that Red Hat icons which was welcoming her on login, and hates unfriendliness of Windows;-) -- and she is really not computer geek; sorry, I digress). ... Being now a Red Hat employee, I would love to install them some Red Hat related distro, but I am not sure which one. ... The nature of the fedora/RHEL split is that if you want new app features you have to accept the experimental kernels and device drivers that come bundled with them in fedora. ...
    (Fedora)