[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: %pre problem!



You should build a relocatable package.
What I do is I give it a default directory in Prefix in my spec file.
When the user install, he/she should use the --prefix=<directory> to
override the default location.

-Joe

-----Original Message-----
From: Nagendar [mailto:nagendar@pspl.co.in]
Sent: Thursday, January 16, 2003 11:02 AM
To: rpm-list@redhat.com
Subject: %pre problem!


Hi,

I am new to rpm making and am seeing  a problem in making a rpm and
installing.

My requirement is:
I need some user responses, which I use further in postinstall. There is
"request" script on Solaris. I don't find a similar one on Linux rpm.

I added like this in %pre section:
----------------------------------------------------------------------------
echo "Please enter the directory, you want to install"
read my_install_dir
----------------------------------------------------------------------------

While installing, the script waits for few seconds, say 5, and then it
continues, without user entering something. How can I make it wait till user
types some response?

Please help!

Thanks,
Nagendar



_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []