Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 3811 Details for
Bug 7778
apcupsd-3.9.9.ebuild - adds USB UPS devices
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
apcupsd-3.9.9-add_platform.patch
apcupsd-3.9.9-add_platform.patch (text/plain), 2.08 KB, created by
Zach Welch (RETIRED)
on 2002-09-10 21:26:26 UTC
(
hide
)
Description:
apcupsd-3.9.9-add_platform.patch
Filename:
MIME Type:
Creator:
Zach Welch (RETIRED)
Created:
2002-09-10 21:26:26 UTC
Size:
2.08 KB
patch
obsolete
>diff -aurN apcupsd-3.9.9-orig/platforms/gentoo/Makefile.in apcupsd-3.9.9/platforms/gentoo/Makefile.in >--- apcupsd-3.9.9-orig/platforms/gentoo/Makefile.in Wed Dec 31 16:00:00 1969 >+++ apcupsd-3.9.9/platforms/gentoo/Makefile.in Tue Sep 10 14:55:54 2002 >@@ -0,0 +1,28 @@ >+# Makefile template >+# >+# Copyright (C) 1999-2002 Riccardo Facchetti <riccardo@master.oasi.gpa.it> >+# >+ >+# Default variables >+@VARIABLES@ >+# TOP source directory. >+topdir = @top_srcdir@ >+top_builddir = $(topdir) >+ >+# Include the default make targets: to be put before the all-targets: rule. >+@TARGETS@ >+ >+all-targets: Makefile >+ >+install: >+ @echo "Installing apcupsd boot script..." >+ $(INSTALL_PROGRAM) -m 744 apcupsd /etc/init.d/apcupsd >+ >+uninstall: >+ @echo "Removing boot script..." >+ @rm -f /etc/init.d/apcupsd >+ >+clean: >+ >+distclean: >+ @rm -f apcupsd Makefile >diff -aurN apcupsd-3.9.9-orig/platforms/gentoo/apcupsd.in apcupsd-3.9.9/platforms/gentoo/apcupsd.in >--- apcupsd-3.9.9-orig/platforms/gentoo/apcupsd.in Wed Dec 31 16:00:00 1969 >+++ apcupsd-3.9.9/platforms/gentoo/apcupsd.in Tue Sep 10 14:55:02 2002 >@@ -0,0 +1,48 @@ >+#! /bin/sh >+# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved. >+# >+# Author: Andre Hedrick <hedrick@astro.dyer.vanderbilt.edu> >+# >+# apcupsd startup script >+# >+ >+. /etc/rc.conf >+ >+test "$START_APCUPSD" = yes || exit 0 >+ >+return=$rc_done >+ >+APCPID=@PIDDIR@/apcupsd.pid >+APCUPSD=@sbindir@/apcupsd >+ >+case "$1" in >+ start) >+ rm -f @PWRFAILDIR@/powerfail >+ rm -f @nologdir@/nologin >+ echo -n "Starting apcupsd power management" >+ $APCUPSD || return=$rc_failed >+ echo -e "$return" >+ ;; >+ stop) >+ echo -n "Stopping apcupsd power management" >+ if [ -f $APCPID ]; then >+ kill $(cat $APCPID) || return=$rc_failed >+ rm -f $APCPID >+ else >+ return=$rc_failed >+ fi >+ echo -e "$return" >+ ;; >+ restart) >+ $0 stop >+ $0 start >+ ;; >+ status) >+ @sbindir@/apcaccess status >+ ;; >+ *) >+ echo "Usage: $0 {start|stop|restart|status}" >+ exit 1 >+esac >+ >+exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 7778
:
3810
|
3811
|
3812
|
3829
|
3830
|
3831
|
3870
|
4913