Re: [UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-15 Thread Craig Skinner
On 2015-06-14 Sun 08:36 AM |, Antoine Jacoutot wrote: On Sat, Jun 13, 2015 at 10:31:28PM +0100, Craig Skinner wrote: On 2015-06-13 Sat 22:39 PM |, Antoine Jacoutot wrote: On Sat, Jun 13, 2015 at 08:18:41PM +0100, Craig Skinner wrote: Inspiration taken from the

Re: [UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-15 Thread Antoine Jacoutot
On Mon, Jun 15, 2015 at 02:36:49PM +0100, Craig Skinner wrote: On 2015-06-14 Sun 08:36 AM |, Antoine Jacoutot wrote: On Sat, Jun 13, 2015 at 10:31:28PM +0100, Craig Skinner wrote: On 2015-06-13 Sat 22:39 PM |, Antoine Jacoutot wrote: On Sat, Jun 13, 2015 at 08:18:41PM +0100, Craig

Re: [UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-14 Thread Antoine Jacoutot
On Sat, Jun 13, 2015 at 10:31:28PM +0100, Craig Skinner wrote: On 2015-06-13 Sat 22:39 PM |, Antoine Jacoutot wrote: On Sat, Jun 13, 2015 at 08:18:41PM +0100, Craig Skinner wrote: Inspiration taken from the postfix-{en,dis}able,install scripts: Much moved out of the rc script and into

[UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-13 Thread Craig Skinner
Hi there, Here's an update that enables CUPS to run on boxes which usually read-only mount both /usr /usr/local The current rc script alters /usr, /etc /dev on each start/stop. Inspiration taken from the postfix-{en,dis}able,install scripts: Much moved out of the rc script and into

Re: [UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-13 Thread Craig Skinner
On 2015-06-13 Sat 20:18 PM |, Craig Skinner wrote: Inspiration taken from the postfix-{en,dis}able,install scripts: Much moved out of the rc script and into 'cups-toggle (enable|disable)'. So as to not clutter the last mail, here's a sample script run: craig@spruce:~ 0$ sudo cups-toggle

Re: [UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-13 Thread Craig Skinner
On 2015-06-13 Sat 22:39 PM |, Antoine Jacoutot wrote: On Sat, Jun 13, 2015 at 08:18:41PM +0100, Craig Skinner wrote: Inspiration taken from the postfix-{en,dis}able,install scripts: Much moved out of the rc script and into 'cups-toggle (enable|disable)'. I prefer the way it's done

Re: [UPDATE] print/cups enable/disable script for ro /usr mount

2015-06-13 Thread Antoine Jacoutot
On Sat, Jun 13, 2015 at 08:18:41PM +0100, Craig Skinner wrote: Hi there, Here's an update that enables CUPS to run on boxes which usually read-only mount both /usr /usr/local The current rc script alters /usr, /etc /dev on each start/stop. Inspiration taken from the

Re: cups-enable

2008-12-14 Thread Jacob Meuser
On Sat, Dec 13, 2008 at 09:15:46PM -0500, Steve Shockley wrote: On 12/12/2008 2:40 PM, Jacob Meuser wrote: Who knows about -M? I'm serious. I've never used that option before, and it's totally nonobvious that I should look through the man page to find it. uh, you're saying it's totally

Re: cups-enable

2008-12-14 Thread Thilo Pfennig
One other thing: There is no man cups-enable. Also one cant get help. Personally I like to use it in /etc/rc.local to do this if links are not set, but I could not get any infos about any options - also not via cups-enable -h or cups-enable --help. regards, Thilo

Re: pkg_info message display [Re: cups-enable]

2008-12-14 Thread Marc Espie
On Sat, Dec 13, 2008 at 10:38:10AM -0700, Theo de Raadt wrote: .It Fl M Show the install-message file (if any) for each package. +If any step not documented in the manual must be taken before a package +can be used, this file will often mention it. That is an attempt to entirely push

Re: cups-enable

2008-12-14 Thread Antoine Jacoutot
On Sun, 14 Dec 2008, Jacob Meuser wrote: I think it would also be nice if README.OpenBSD were in pkg/ dirs and handled automatically, kinda like MESSAGE is now. adding files/ dirs seems like a waste. I like this. -- Antoine

Re: pkg_info message display [Re: cups-enable]

2008-12-13 Thread Landry Breuil
On Fri, Dec 12, 2008 at 11:27:44PM -0600, Marco Peereboom wrote: Ted is right. I do know about -M but I use it so frequently that I always have to find it in the man. pkg_info could should be able to display this info like pkg_info cups. That makes intuitive sense to me and I think others

Re: pkg_info message display [Re: cups-enable]

2008-12-13 Thread Marc Balmer
* Landry Breuil wrote: [...] about. But i think sthen@'s proposal to add a message like 'This package has additional information, view it with pkg_info -M' is the most 'user-friendly'. Yes, I'd second that.

Re: pkg_info message display [Re: cups-enable]

2008-12-13 Thread Jacob Meuser
be sometimes big I think some is outright bloat. take the cups MESSAGE for example: To enable CUPS, execute '${PREFIX}/sbin/cups-enable' as root. To disable CUPS, execute '${PREFIX}/sbin/cups-disable' as root. To start cups at boot time, add the following to /etc/rc.local: if [ -x ${PREFIX}/sbin

Re: pkg_info message display [Re: cups-enable]

2008-12-13 Thread Antoine Jacoutot
On Sat, 13 Dec 2008, Jacob Meuser wrote: how is too big defined? is the above abbreviated CUPS message too big to add to the default pkg_info output? At one point I was told that too big = 15 lines. how about a standard directory for README.OpenBSD files?

Re: pkg_info message display [Re: cups-enable]

2008-12-13 Thread Ingo Schwarze
Ted Unangst wrote on Fri, Dec 12, 2008 at 05:20:19PM -0500: Why would I know to use -M? Because I read the man page and want to see the install-message file? I already installed the damn thing, so obviously I don't want to see that file. The install message is not a message explaining how

Re: pkg_info message display [Re: cups-enable]

2008-12-13 Thread Theo de Raadt
.It Fl M Show the install-message file (if any) for each package. +If any step not documented in the manual must be taken before a package +can be used, this file will often mention it. That is an attempt to entirely push the problem under the table. The default message should be relevant.

Re: cups-enable

2008-12-13 Thread Steve Shockley
On 12/12/2008 2:40 PM, Jacob Meuser wrote: Who knows about -M? I'm serious. I've never used that option before, and it's totally nonobvious that I should look through the man page to find it. uh, you're saying it's totally nonobvious that people should read the manuals of tools they are

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Jacob Meuser
On Fri, Dec 12, 2008 at 09:50:15AM +, Stuart Henderson wrote: On 2008/12/12 08:06, Marc Balmer wrote: It's also not mentioned by pkg_info as something of interest. It should be, right? Your are wrong. When you install CUPS, a message is displayed. That message can be

pkg_info message display [Re: cups-enable]

2008-12-12 Thread Stuart Henderson
On 2008/12/12 08:06, Marc Balmer wrote: It's also not mentioned by pkg_info as something of interest. It should be, right? Your are wrong. When you install CUPS, a message is displayed. That message can be redisplayed at any time using 'pkg_info -M cups'. These are too easy to miss

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Marc Balmer
* Stuart Henderson wrote: On 2008/12/12 08:06, Marc Balmer wrote: It's also not mentioned by pkg_info as something of interest. It should be, right? Your are wrong. When you install CUPS, a message is displayed. That message can be redisplayed at any time using 'pkg_info -M

Re: cups-enable

2008-12-12 Thread Artur Grabowski
Marc Balmer m...@msys.ch writes: Your are wrong. When you install CUPS, a message is displayed. That message can be redisplayed at any time using 'pkg_info -M cups'. Is this like Postfix where postfix is disabled by pkg_add -u and the message about enabling it drowns in the bazillion of lines

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Marc Espie
On Fri, Dec 12, 2008 at 09:50:15AM +, Stuart Henderson wrote: On 2008/12/12 08:06, Marc Balmer wrote: It's also not mentioned by pkg_info as something of interest. It should be, right? Your are wrong. When you install CUPS, a message is displayed. That message can be

Re: cups-enable

2008-12-12 Thread Jacob Meuser
On Fri, Dec 12, 2008 at 09:46:32AM -0500, Ted Unangst wrote: On Fri, Dec 12, 2008 at 2:06 AM, Marc Balmer m...@msys.ch wrote: It's also not mentioned by pkg_info as something of interest. It should be, right? Your are wrong. When you install CUPS, a message is displayed. That message

Re: cups-enable

2008-12-12 Thread Jacob Meuser
databases and whatever is not good. I think postfix was fixed to not break this way (at least it didn't shut down when I upgraded a few hours ago), if this is the issue with cups, it should be fixed too. actually, it's upgrading base that is likely to break cups, assuming you rely on cups-enable

Re: cups-enable

2008-12-12 Thread Antoine Jacoutot
On Fri, 12 Dec 2008, Jacob Meuser wrote: one last note: pretty much every driver that can be used with cups can be used with base lpd, it's just a little more work ... imo the This is true except it is much more complicated to pass options to stock lpd than it is for cups if I want e.g. a4

Re: cups-enable

2008-12-12 Thread Antoine Jacoutot
On Fri, 12 Dec 2008, Jacob Meuser wrote: On Fri, Dec 12, 2008 at 09:48:35PM +0100, Antoine Jacoutot wrote: On Fri, 12 Dec 2008, Jacob Meuser wrote: one last note: pretty much every driver that can be used with cups can be used with base lpd, it's just a little more work ... imo the

Re: cups-enable

2008-12-12 Thread Jacob Meuser
idea. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org Index: files/cups-enable === RCS file: /home2/cvs/OpenBSD/ports/print/cups/files/cups-enable,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Ted Unangst
On Fri, Dec 12, 2008 at 2:31 PM, Marc Espie es...@nerim.net wrote: These are too easy to miss at some point after installation. What does anyone think about doing something like this? Blech The issue is mostly to have less stuff displayed during installation, which is not yet done, but

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Jacob Meuser
On Fri, Dec 12, 2008 at 08:31:07PM +0100, Marc Espie wrote: On Fri, Dec 12, 2008 at 09:50:15AM +, Stuart Henderson wrote: On 2008/12/12 08:06, Marc Balmer wrote: It's also not mentioned by pkg_info as something of interest. It should be, right? Your are wrong. When you

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Marc Espie
On Fri, Dec 12, 2008 at 04:40:23PM -0500, Ted Unangst wrote: On Fri, Dec 12, 2008 at 2:31 PM, Marc Espie es...@nerim.net wrote: These are too easy to miss at some point after installation. What does anyone think about doing something like this? Blech The issue is mostly to have less

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Ted Unangst
freaking purpose of the program. So why does it make me beg pretty please to print some basic info? Of all the reasons I might have to run pkg_info cups after installation, to find out about cups-enable is the #1 reason I would do so. Why would I know to use -M? Because I read the man page

Re: pkg_info message display [Re: cups-enable]

2008-12-12 Thread Marco Peereboom
Ted is right. I do know about -M but I use it so frequently that I always have to find it in the man. pkg_info could should be able to display this info like pkg_info cups. That makes intuitive sense to me and I think others as well. On Fri, Dec 12, 2008 at 11:00:20PM +0100, Marc Espie wrote:

cups-enable

2008-12-11 Thread Ted Unangst
wondering why things stopped working after an upgrade, it took me a little while to remember that lpr was overwritten. but then it took a while longer to find cups-enable, even after I remembered that I needed to run it, because it's not cupsenable, which is the only one that shows up when I type

Re: cups-enable

2008-12-11 Thread Jacob Meuser
On Fri, Dec 12, 2008 at 12:00:21AM -0500, Ted Unangst wrote: wondering why things stopped working after an upgrade, it took me a little while to remember that lpr was overwritten. but then it took a while longer to find cups-enable, even after I remembered that I needed to run it, because

Re: cups-enable

2008-12-11 Thread Jacob Meuser
On Fri, Dec 12, 2008 at 05:33:17AM +, Jacob Meuser wrote: On Fri, Dec 12, 2008 at 12:00:21AM -0500, Ted Unangst wrote: While on the subject, the lpd.pre-cups test is a little broken. I had my old lpd backed up (pre-upgrade). Now the 4.4 tools are gone, and the backups are from 4.3 or

Re: cups-enable

2008-12-11 Thread Marc Balmer
* Ted Unangst wrote: wondering why things stopped working after an upgrade, it took me a little while to remember that lpr was overwritten. but then it took a while longer to find cups-enable, even after I remembered that I needed to run it, because it's not cupsenable, which is the only one