aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2024-04-30 20:30:16 +0000
committerRene Ladan <rene@FreeBSD.org>2024-04-30 20:30:16 +0000
commit5301f05e55bcd88c14ea9a1712aaceb9d044ee47 (patch)
tree29995f8de3ba9fa11eee80d97a21901a449b3fac /sysutils
parent463d7ad164085cbd6fae3a0f35c51fc755abd21c (diff)
downloadports-5301f05e55bcd88c14ea9a1712aaceb9d044ee47.tar.gz
ports-5301f05e55bcd88c14ea9a1712aaceb9d044ee47.zip
sysutils/libretto-config: Remove expired port
2024-04-30 sysutils/libretto-config: Utility for obsolete hardware released 20 years ago
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/libretto-config/Makefile38
-rw-r--r--sysutils/libretto-config/distinfo2
-rw-r--r--sysutils/libretto-config/files/patch-Makefile50
-rw-r--r--sysutils/libretto-config/files/patch-libapm-e.man154
-rw-r--r--sysutils/libretto-config/files/patch-libapm-j.man110
-rw-r--r--sysutils/libretto-config/files/patch-libapm.c204
-rw-r--r--sysutils/libretto-config/files/patch-libapm.h47
-rw-r--r--sysutils/libretto-config/pkg-descr24
-rw-r--r--sysutils/libretto-config/pkg-plist3
10 files changed, 0 insertions, 633 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 8e2e81cabb63..f0d13e41f462 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -679,7 +679,6 @@
SUBDIR += libg15render
SUBDIR += libieee1284
SUBDIR += libptytty
- SUBDIR += libretto-config
SUBDIR += libsunacl
SUBDIR += libsysstat
SUBDIR += libtpms
diff --git a/sysutils/libretto-config/Makefile b/sysutils/libretto-config/Makefile
deleted file mode 100644
index 5c6c7f587a9e..000000000000
--- a/sysutils/libretto-config/Makefile
+++ /dev/null
@@ -1,38 +0,0 @@
-PORTNAME= libretto-config
-PORTVERSION= 1.0.b5
-PORTREVISION= 10
-CATEGORIES= sysutils
-MASTER_SITES= http://club.pep.ne.jp/~ishioka/Software/Linux/libapm/
-DISTNAME= libapm-linux-1.0beta5
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Libretto BIOS Setting Program
-
-BROKEN= Unfetchable
-DEPRECATED= Utility for obsolete hardware released 20 years ago
-EXPIRATION_DATE=2024-04-30
-
-ONLY_FOR_ARCHS= i386
-
-WRKSRC= ${WRKDIR}/libapm
-
-USE_GCC= yes
-PORTDOCS= *
-
-MAKE_ARGS= MANDIR=${PREFIX}/share/man
-
-OPTIONS_DEFINE= DOCS
-
-post-install:
- ${MkDIR} ${STAGEDIR}${PREFIX}/share/man/ja/man8
- ${INSTALL_MAN} ${WRKSRC}/libapm-j.man ${STAGEDIR}${PREFIX}/share/man/ja/man8/${PORTNAME}.8
-
-post-install-DOCS-on:
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README-e.1st ${STAGEDIR}${DOCSDIR}/README.1st
- ${INSTALL_DATA} ${WRKSRC}/APM-EXBIOS-e.txt ${STAGEDIR}${DOCSDIR}/APM-EXBIOS.txt
- @${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
- ${INSTALL_DATA} ${WRKSRC}/README-j.1st ${STAGEDIR}${DOCSDIR}/ja/README.1st
- ${INSTALL_DATA} ${WRKSRC}/APM-EXBIOS-j.txt ${STAGEDIR}${DOCSDIR}/ja/APM-EXBIOS.txt
-
-.include <bsd.port.mk>
diff --git a/sysutils/libretto-config/distinfo b/sysutils/libretto-config/distinfo
deleted file mode 100644
index 143c8cc738b3..000000000000
--- a/sysutils/libretto-config/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (libapm-linux-1.0beta5.tar.gz) = 6d13b04931425e8df0ed164ade6f7ff311bfc1585bb0b581e3cf5f29ddece73f
-SIZE (libapm-linux-1.0beta5.tar.gz) = 13668
diff --git a/sysutils/libretto-config/files/patch-Makefile b/sysutils/libretto-config/files/patch-Makefile
deleted file mode 100644
index 0c5aea7230ed..000000000000
--- a/sysutils/libretto-config/files/patch-Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
---- Makefile.orig 1998-06-18 10:44:09 UTC
-+++ Makefile
-@@ -1,17 +1,18 @@
- OBJ = libapm.o bios.o smi.o
- PROGRAM = libapm
--OWNER = -g root
--GROUP = -o root
--MODE = -m 755
--#MODE = -m 4755
--BINDIR = /usr/local/bin
--MANSECT = l
--MANDIR = /usr/local/man/ja_JP.ujis
--MANLANG = j
--#MANDIR = /usr/local/man
--#MANLANG = e
-+PROGRAM_NAME = libretto-config
-+#OWNER = -o root
-+#GROUP = -g operator
-+#MODE = -m 4550
-+BINDIR = ${PREFIX}/sbin
-+MANSECT = 8
-+MANDIR = ${PREFIX}/man
-+MANLANG = e
-
--CFLAGS = -O2 #-DLIBRETTO -DDEBUG
-+#DEFS= -DLIBRETTO -DDEBUG
-+CFLAGS += $(DEFS)
-+
-+all: $(PROGRAM)
-
- $(PROGRAM): $(OBJ)
- $(CC) $(CFLAGS) -o $(PROGRAM) $(OBJ)
-@@ -19,12 +20,12 @@ $(PROGRAM): $(OBJ)
- clean:
- /bin/rm -f $(OBJ) $(PROGRAM) *~
-
--install: install.bin
-+install: install.bin install.man
-
- install.bin:
-- install -c -s $(OWNER) $(GROUP) $(MODE) $(PROGRAM) $(BINDIR)
-+ install -c -s $(OWNER) $(GROUP) $(MODE) $(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM_NAME)
-
- install.man:
-- - mkdir $(MANDIR)/man$(MANSECT)
-- install -c -m 644 libapm-${MANLANG}.man $(MANDIR)/man$(MANSECT)/libapm.$(MANSECT)
--
-+ ${BSD_INSTALL_MAN} libapm-${MANLANG}.man $(DESTDIR)$(MANDIR)/man$(MANSECT)/$(PROGRAM_NAME).$(MANSECT)
-+
-+libapm.o: libapm.h libapm.c
diff --git a/sysutils/libretto-config/files/patch-libapm-e.man b/sysutils/libretto-config/files/patch-libapm-e.man
deleted file mode 100644
index 1223eb8138b3..000000000000
--- a/sysutils/libretto-config/files/patch-libapm-e.man
+++ /dev/null
@@ -1,154 +0,0 @@
---- libapm-e.man.orig 1998-06-19 03:02:48 UTC
-+++ libapm-e.man
-@@ -1,80 +1,98 @@
- .\" Written Tue May 12 19:30:00 1998 by ISHIOKA Takashi
- .\" (ishioka@ppp01.infopepper.or.jp )
--.TH libapm l "" "TOSHIBA Libretto only" ""
-+.TH libretto-config 8 "" "TOSHIBA Libretto only" ""
- .SH NAME
--libapm \- TOSHIBA Libretto BIOS Setup Program
-+libretto-config \- TOSHIBA Libretto BIOS Setup Program
- .SH SYNOPSIS
-
--.B libapm
--{\-v,\-\-Version}
--{\-h,\-\-Help}
-+.B libretto-config
-+{\-v}
-+{\-h}
-
--.B libapm
--{\-P,\-\-PowerUp (boot,hibernation)}
--{\-T,\-\-StandbyTime (0,5,10,15,30,45,60)}
--{\-a,\-\-AutoOff (disable,10,20,30,40,50,60)}
--{\-S,\-\-PanelSwitch (disable,enable)}
--{\-A,\-\-PowerOn (disable,<time>)}
--{\-L,\-\-LcdPower (0,1,2,3)}
--{\-V,\-\-Volume (0,1,2,3)}
--{\-O,\-\-Off (suspend|hibernation)}
-+.B libretto-config
-+{\-P (boot,hibernation)}
-+{\-T (0,5,10,15,30,45,60)}
-+{\-a (disable,10,20,30,40,50,60)}
-+{\-S (disable,enable)}
-+{\-A (disable,<time>)}
-+{\-L (0,1,2,3)}
-+{\-V (0,1,2,3)}
-+{\-O (suspend|hibernation)}
-
- .SH DESCRIPTION
--.B libapm
--configures the setting of Toshiba Libretto.
-+.B libretto-config
-+configures the BIOS settings of a Toshiba Libretto notebook computer.
- Changes are done immediately and rebooting is not neccesary.
-
- .SH OPTIONS
- .TP
--.B \-P,\-\-PowerUp (boot,hibernation)
--sets the Hibernation function.
--If hibernation is specified, the hibernation function is enabled.
--If boot is specified, it is disabled.
-+.B \-P (boot,hibernation)
-+sets Hibernation mode.
-+The ``boot'' argument disables hibernation.
-+Hibernation mode writes volatile memory
-+to disk at power off.
-+Without hibernation,
-+the Libretto's power-down actions are destructive;
-+there is no saving of machine state.
- .TP
--.B \-T,\-\-StandbyTime (0,5,10,15,30,45,60)
--sets the Standby time.
--If the Stanby time is specified, the power is not cut after hibernation
--for that time in order to resume quickly from hibernation.
--You can select the time from 0, 5, 10, 15, 30, 45, 60 minutes.
--This function is valid if the hibernation function is enabled.
-+.B \-T (0,5,10,15,30,45,60)
-+sets a Standby Time.
-+If a standby time is specified,
-+power is not cut after hibernation
-+for the specified time
-+to allow a quick resume.
-+A time of 0, 5, 10, 15, 30, 45 or 60 minutes
-+may be selected.
- .TP
--.B \-a,\-\-AutoOff (disable,10,20,30,40,50,60)
--sets the time to the Auto Power Off.
--You can select the time from disable, 10, 20, 30, 40, 50, 60 minutes.
--This function is valid if the hibernation function is enabled.
-+.B \-a (disable,10,20,30,40,50,60)
-+sets the time to Auto Power Off.
-+A time of 10, 20, 30, 40, 50 or 60 minutes
-+may be selected,
-+or the word ``disabled'' may be used
-+if Auto Power Off is not needed.
- .TP
--.B \-S,\-\-PanelSwitch (disable,enable)
--sets the Panel Switch funtion. If enabled, hibernation is done by
--closing the panel and vice versa.
--This function is valid if the hibernation function is enabled.
-+.B \-S (disable,enable)
-+sets the Panel Switch function.
-+If enabled,
-+hibernation or power-down may be done
-+by closing the front panel
-+and the machine may be restarted
-+by opening it.
- .TP
--.B \-A,\-\-PowerOn (disable,<time>)
--sets the Power On timer.
--The format of the <time> is hh:mm. If time is specified, power is
--automatically turned on at the time.
-+.B \-A (disable,<time>)
-+sets the Power On Timer.
-+If <time> is specified,
-+power is automatically turned on
-+at that time.
-+The format of the <time> is hh:mm,
-+and a value of ``disable''
-+turns off the power on timer.
- .TP
--.B \-L,\-\-LcdPower (0,1,2,3)
--sets the brightness of the LCD.
--0 is the darkest and 3 is the brightest.
-+.B \-L (0,1,2,3)
-+sets the brightness of the display LCD.
-+0 is the dimmest and 3 is the brightest.
- .TP
--.B \-V,\-\-Volume (0,1,2,3)
--sets the volume of beep sound.
--0 is off, 1 is minimum and 3 is maximum.
-+.B \-V (0,1,2,3)
-+sets the volume of keyboard bell (system speaker).
-+0 is off, 1 is quietest and 3 is loudest.
- .TP
--.B \-O,\-\-Off (suspend|hibernation)
--sets the suspend/hibernation mode. (100CT Only)
-+.B \-O (suspend|hibernation)
-+sets the suspend/hibernation mode. (100CT/110CT Only)
- .TP
--.B \-v,\-\-Version
-+.B \-v
- displays the version of this program.
- .TP
--.B \-h,\-\-Help
--displays the simple usage.
-+.B \-h
-+displays a simple usage message.
-+
-+.SH NOTES
-+This program has no warranty at all.
-+It may or may not contain bugs.
-
- .SH BUGS
--Completely no warranty. It may or may not contain any bugs.
--Operation on the machines but Toshiba Libretto is uncertain.
--A part of function might work on Toshiba's other notebook machines.
--You must have root privilege to run this program.
-+Operation on any machines except Toshiba Libretto is unknown.
-+Operation on other Toshiba notebook computer is uncertain.
-+Superuser privelige is required to use this program.
-
- .SH AUTHORS
- .TP
diff --git a/sysutils/libretto-config/files/patch-libapm-j.man b/sysutils/libretto-config/files/patch-libapm-j.man
deleted file mode 100644
index 1fb53e47bf42..000000000000
--- a/sysutils/libretto-config/files/patch-libapm-j.man
+++ /dev/null
@@ -1,110 +0,0 @@
---- libapm-j.man.orig Thu Jun 4 13:16:43 1998
-+++ libapm-j.man Thu Nov 26 12:40:28 1998
-@@ -1,38 +1,38 @@
- .\" Written Tue May 12 19:30:00 1998 by ISHIOKA Takashi
- .\" Changes Thu Jun 3 12:10:28 1998
- .\" (ishioka@ppp01.infopepper.or.jp )
--.TH libapm l "" "TOSHIBA Libretto only" ""
-+.TH libretto-config 8 "" "TOSHIBA Libretto only" ""
- .SH 名前
--libapm \- 東芝Librettoの電源管理プログラム
-+libretto-config \- 東芝Librettoの電源管理プログラム
- .SH 書式
-
--.B libapm
--{\-v,\-\-Version}
--{\-h,\-\-Help}
-+.B libretto-config
-+{\-v}
-+{\-h}
-
--.B libapm
--{\-P,\-\-PowerUp (boot,hibernation)}
--{\-T,\-\-StandbyTime (0,5,10,15,30,45,60,unlimit)}
--{\-a,\-\-AutoOff (disable,10,20,30,40,50,60)}
--{\-S,\-\-PanelSwitch (disable,enable)}
--{\-A,\-\-AlarmOn (disable,<time>)}
--{\-L,\-\-LcdPower (0,1,2,3)}
--{\-V,\-\-Volume (0,1,2,3)}
--{\-O,\-\-Off (suspend|hibernation)}
-+.B libretto-config
-+{\-P (boot,hibernation)}
-+{\-T (0,5,10,15,30,45,60,unlimit)}
-+{\-a (disable,10,20,30,40,50,60)}
-+{\-S (disable,enable)}
-+{\-A (disable,<time>)}
-+{\-L (0,1,2,3)}
-+{\-V (0,1,2,3)}
-+{\-O (suspend|hibernation)}
-
- .SH 説明
--.B libapm
-+.B libretto-config
- は東芝Libretto のシステム設定を変更します。
- 変更は即座に反映されリブートの必要はありません。
-
- .SH オプション
- .TP
--.B \-P,\-\-PowerUp (boot,hibernation)
-+.B \-P (boot,hibernation)
- は ハイバネーション機能を設定します。
- hibernationを指定するとハイバネーション機能が有効になり、
- bootを指定するとそれが無効になります。
- .TP
--.B \-T,\-\-StandbyTime (0,5,10,15,30,45,60,unlimit)
-+.B \-T (0,5,10,15,30,45,60,unlimit)
- は、スタンバイ時間(単位は分)を設定します。
- スタンバイ時間とは、サスペンドによってハードディスクへの保存処理を
- 終了した後、完全に電源を切るまでの時間です。
-@@ -40,43 +40,43 @@
- unlimit を指定した場合は、完全に電源を切らなくなります。
- この機能は、ハイバネーション機能が有効な場合のみ動作します。
- .TP
--.B \-a,\-\-AutoOff (disable,10,20,30,40,50,60)
-+.B \-a (disable,10,20,30,40,50,60)
- システム自動オフ時間(単位は分)を設定します。
- 指定できる時間は disable,10,20,30,40,50,60 です.
- この機能は、ハイバネーション機能が有効な場合のみ動作します。
- .TP
--.B \-S,\-\-PanelSwitch (disable,enable)
-+.B \-S (disable,enable)
- は、パネルを閉じたときにハイバネーションし、開いたときにレジュームする
- パネルスイッチの機能を設定します。
- enable を指定するとパネルスイッチの機能が有効になり、
- disable を指定するとその機能は無効になります。
- この機能はハイバネーション機能が有効な場合のみ動作します。
- .TP
--.B \-A,\-\-AlarmOn (disable,<time>)
-+.B \-A (disable,<time>)
- は、タイマオン機能を設定します。
- <time> として hh:mm の形で時刻を与えると、その時刻に自動的に電源が入り
- ます。disable を指定するとその機能が無効になります。
- .TP
--.B \-L,\-\-LcdPower (0,1,2,3)
-+.B \-L (0,1,2,3)
- は、LCD の輝度を設定します。
- 0,1,2,3 の値が指定できます。
- 0 が最も暗く、数字が大きくなるに従い、
- より明るくなります。
- .TP
--.B \-V,\-\-Volume (0,1,2,3)
-+.B \-V (0,1,2,3)
- は、ビープ音の設定をします。
- 0,1,2,3 の値が指定できます。
- 0でオフ、1が最も小さな音で、数字が大きくなるに従い、
- より大きな音になります。
- .TP
--.B \-O,\-\-Off (suspend|hibernation)
-+.B \-O (suspend|hibernation)
- 電源を切るときに suspend状態にするか、ハイバネーション機能を使うかを
- 設定します。このオプションは Libretto100以降の機種のみで有効です。
- .TP
--.B \-v,\-\-Version
-+.B \-v
- バージョンを表示して終了します。
- .TP
--.B \-h,\-\-Help
-+.B \-h
- 簡単なヘルプを表示して終了します。
-
- .SH バグ
diff --git a/sysutils/libretto-config/files/patch-libapm.c b/sysutils/libretto-config/files/patch-libapm.c
deleted file mode 100644
index be962e747376..000000000000
--- a/sysutils/libretto-config/files/patch-libapm.c
+++ /dev/null
@@ -1,204 +0,0 @@
---- libapm.c.orig 1998-06-19 00:28:23 UTC
-+++ libapm.c
-@@ -8,12 +8,19 @@
- /* */
- /***********************************************************/
-
-+#undef HAVE_GETOPT_LONG
-+#ifdef __linux__
-+#define HAVE_GETOPT_LONG 1
-+#endif
-+
- #include <stdio.h>
- #include <stdlib.h>
- #include <sys/types.h>
- #include <string.h>
- #include <ctype.h>
-+#ifdef HAVE_GETOPT_LONG
- #include <getopt.h>
-+#endif
- #include <fcntl.h>
- #include <unistd.h>
- #include <sys/mman.h>
-@@ -63,6 +70,7 @@ int main(int argc, char *argv[])
- int r;
- char c;
-
-+#ifdef HAVE_GETOPT_LONG
- struct option longopts[] = {
- { "Help", 0, 0, 'h' },
- { "Version", 0, 0, 'v' },
-@@ -78,6 +86,7 @@ int main(int argc, char *argv[])
- #endif /* CMOS_ACCESS */
- {0, 0, 0, 0}
- };
-+#endif
-
- if( 0 != geteuid() ){
- printf("%s: Only root can execute !!\n", argv[0]);
-@@ -98,8 +107,12 @@ int main(int argc, char *argv[])
-
- get_status();
-
-+#ifdef HAVE_GETOPT_LONG
- while ((c = getopt_long(argc,argv,
- "hvP:T:a:S:A:L:V:O:", longopts, NULL)) != -1) {
-+#else
-+ while ((c = getopt(argc,argv, "hvP:T:a:S:A:L:V:O:")) != -1) {
-+#endif
- switch (c) {
- case 'h':
- usage();
-@@ -189,7 +202,7 @@ int main(int argc, char *argv[])
- case '?':
- usage();
- break;
-- default:
-+ default: break;
- }
- }
- #ifdef DEBUG
-@@ -215,29 +228,60 @@ int main(int argc, char *argv[])
- void usage(void)
- {
- #ifdef CMOS_ACCESS
-- printf("
--usage: libapm [-v --Version]
-- [-h --Help]
-- [-P --PowerUp {boot,hibernation}]
-- [-T --StandbyTime {0,5,10,15,30,45,60,unlimit}]
-- [-a --AutoOff {disable,10,20,30,40,50,60}]
-- [-S --PanelSwitch {disable,enable}]
-- [-A --AlarmOn {disable,<time>}]
-- [-L --LcdPower {0,1,2,3}]
-+# ifdef HAVE_GETOPT_LONG
-+ printf("\n\
-+usage: libretto-config [-v --Version]\n\
-+ [-h --Help]\n\
-+ [-P --PowerUp {boot,hibernation}]\n\
-+ [-T --StandbyTime {0,5,10,15,30,45,60,unlimit}]\n\
-+ [-a --AutoOff {disable,10,20,30,40,50,60}]\n\
-+ [-S --PanelSwitch {disable,enable}]\n\
-+ [-A --AlarmOn {disable,<time>}]\n\
-+ [-L --LcdPower {0,1,2,3}]\n\
- \n");
--#else
-- printf("
--usage: libapm [-v --Version]
-- [-h --Help]
-- [-P --PowerUp {boot,hibernation}]
-- [-T --StandbyTime {0,5,10,15,30,45,60,unlimit}]
-- [-a --AutoOff {disable,10,20,30,40,50,60}]
-- [-S --PanelSwitch {disable,enable}]
-- [-A --AlarmOn {disable,<time>}]
-- [-L --LcdPower {0,1,2,3}]
-- [-V --Volume {0,1,2,3}]
-- [-O --Off {suspend|hibernation} Use Only >= Libretto100]
-+# else /* not HAVE_GETOPT_LONG */
-+ printf("\n\
-+usage: libretto-config [-v : Version]\n\
-+ [-h : Help]\n\
-+ [-P {boot,hibernation} : PowerUp]\n\
-+ [-T {0,5,10,15,30,45,60,unlimit} : StandbyTime]\n\
-+ [-a {disable,10,20,30,40,50,60} : AutoOff]\n\
-+ [-S {disable,enable} : PanelSwitch]\n\
-+ [-A {disable,<time>} : AlarmOn]\n\
-+ [-L {0,1,2,3} : LcdPower]\n\
-+ \n");
-+# endif /* HAVE_GETOPT_LONG */
-+
-+#else /* not CMOS_ACCESS */
-+
-+# ifdef HAVE_GETOPT_LONG
-+ printf("\
-+usage: libretto-config [-v --Version]\n\
-+ [-h --Help]\n\
-+ [-P --PowerUp {boot,hibernation}]\n\
-+ [-T --StandbyTime {0,5,10,15,30,45,60,unlimit}]\n\
-+ [-a --AutoOff {disable,10,20,30,40,50,60}]\n\
-+ [-S --PanelSwitch {disable,enable}]\n\
-+ [-A --AlarmOn {disable,<time>}]\n\
-+ [-L --LcdPower {0,1,2,3}]\n\
-+ [-V --Volume {0,1,2,3}]\n\
-+ [-O --Off {suspend|hibernation} Use Only >= Libretto100]\n\
- \n");
-+# else /* not HAVE_GETOPT_LONG */
-+ printf("\
-+usage: libretto-config [-v : Version]\n\
-+ [-h : Help]\n\
-+ [-P {boot,hibernation} : PowerUp]\n\
-+ [-T {0,5,10,15,30,45,60,unlimit} : StandbyTime]\n\
-+ [-a {disable,10,20,30,40,50,60} : AutoOff]\n\
-+ [-S {disable,enable} : PanelSwitch]\n\
-+ [-A {disable,<time>} : AlarmOn]\n\
-+ [-L {0,1,2,3} : LcdPower]\n\
-+ [-V {0,1,2,3} : Volume]\n\
-+ [-O {suspend|hibernation} : Off (Use Only>=Libretto100)]\n\
-+ \n");
-+# endif /* HAVE_GETOPT_LONG */
-+
- #endif /* CMOS_ACCESS */
- exit(1);
- }
-@@ -246,7 +290,11 @@ usage: libapm [-v --Version]
- void init(void)
- {
- /* SMI port */
-+#ifdef __linux__
- ioperm(0xb2, 1, 1);
-+#else
-+ open("/dev/io", O_RDWR, 0);
-+#endif
- }
- #endif /* CMOS_ACCESS */
-
-@@ -754,29 +802,29 @@ void print_status(void)
- #endif /* CMOS_ACCESS */
-
- #ifndef CMOS_ACCESS
-- printf("
--Power Management for Libretto V%-8s
--+-----------------------------------------------------------+
--| 0) Power-up Mode : %-32s|
--| 1) Standby Time : %-32s|
--| 2) System Auto Off : %-32s|
--| 3) Panel Power On/Off : %-32s|
--| 4) Alarm Power On : %-32s|
--| 5) LCD Power : %-32s|
--| 6) Volume : %-32s|
--| 7) Off (Suspend/Hiber): %-32s|
-+ printf("\
-+Power Management for Libretto V%-8s\n\
-++-----------------------------------------------------------+\n\
-+| 0) Power-up Mode : %-32s|\n\
-+| 1) Standby Time : %-32s|\n\
-+| 2) System Auto Off : %-32s|\n\
-+| 3) Panel Power On/Off : %-32s|\n\
-+| 4) Alarm Power On : %-32s|\n\
-+| 5) LCD Power : %-32s|\n\
-+| 6) Volume : %-32s|\n\
-+| 7) Off (Suspend/Hiber): %-32s|\n\
- +-----------------------------------------------------------+\n\n",
- version, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7]);
- #else
-- printf("
--Power Management for Libretto V%-8s
--+-----------------------------------------------------------+
--| 0) Power-up Mode : %-32s|
--| 1) Standby Time : %-32s|
--| 2) System Auto Off : %-32s|
--| 3) Panel Power On/Off : %-32s|
--| 4) Alarm Power On : %-32s|
--| 5) LCD Power : %-32s|
-+ printf("\
-+Power Management for Libretto V%-8s\n\
-++-----------------------------------------------------------+\n\
-+| 0) Power-up Mode : %-32s|\n\
-+| 1) Standby Time : %-32s|\n\
-+| 2) System Auto Off : %-32s|\n\
-+| 3) Panel Power On/Off : %-32s|\n\
-+| 4) Alarm Power On : %-32s|\n\
-+| 5) LCD Power : %-32s|\n\
- +-----------------------------------------------------------+\n\n",
- version, s[0], s[1], s[2], s[3], s[4], s[5]);
- #endif /* CMOS_ACCESS */
diff --git a/sysutils/libretto-config/files/patch-libapm.h b/sysutils/libretto-config/files/patch-libapm.h
deleted file mode 100644
index f4e146e58f19..000000000000
--- a/sysutils/libretto-config/files/patch-libapm.h
+++ /dev/null
@@ -1,47 +0,0 @@
---- libapm.h.orig 1998-05-12 02:05:49 UTC
-+++ libapm.h
-@@ -32,34 +32,44 @@ static inline int port_inw( int port )
- #define outb(port, value) port_out(value, port)
- #define outw(port, value) port_outw(value, port)
-
-+#ifdef __linux__
- int io_enable(void)
- {
- ioperm(0x70, 1, 1);
- ioperm(0x71, 1, 1);
- return 0;
- }
-+#endif
-
-+#ifdef __linux__
- int io_disable(void)
- {
- ioperm(0x70, 0, 1);
- ioperm(0x71, 0, 1);
- return 0;
- }
-+#endif
-
- int get_cmos(int index)
- {
- int r;
-
-+#ifdef __linux__
- io_enable();
-+#endif
- outb(0x70, index);
- r = inb(0x71);
-+#ifdef __linux__
- io_disable();
-+#endif
- return r;
- }
-
- int set_cmos(int index, int value)
- {
-+#ifdef __linux__
- io_enable();
-+#endif
- outb(0x70, index);
- outb(0x71, value);
- return 0;
diff --git a/sysutils/libretto-config/pkg-descr b/sysutils/libretto-config/pkg-descr
deleted file mode 100644
index 1fe06ef7351b..000000000000
--- a/sysutils/libretto-config/pkg-descr
+++ /dev/null
@@ -1,24 +0,0 @@
-libretto-config - Libretto BIOS Setting Program
-
- The `libretto-config' is a utility program to configure the BIOS
-setting of the mini notebook computer, Toshiba Libretto. Changes to
-the setting are immediately done, so rebooting is not necessary.
- I don't know whether these programs work on any other machines but
-Libretto. In case of Toshiba's notebook machines, some function may
-work.
-
-*** Disclaimer *****************************************************
- The information used to write these programs was obtained by
-analyzing Libretto individually, not provided by Toshiba. Therefore,
-they might contain fatal bugs and might cause damages to your
-Libretto. You can use them freely but the authors are not
-responsible for the programs. Redistribution of the programs are not
-restricted, but you must attach this caution and the source.
-********************************************************************
-
- The original program were written by Mr. Iizuka
-(PXN02133@niftyserve.or.jp), which rewrite the CMOS setting directly.
-Mr. Nomura (GBB00111@niftyserve.or.jp) have extended the program to
-support SMI and BIOS calling. Thanks.
- I, Ishioka, combined programs to the package. If you have any troubles,
-bug reports, or requests, please notify me.
diff --git a/sysutils/libretto-config/pkg-plist b/sysutils/libretto-config/pkg-plist
deleted file mode 100644
index 4755f4ecc12f..000000000000
--- a/sysutils/libretto-config/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-share/man/man8/libretto-config.8.gz
-share/man/ja/man8/libretto-config.8.gz
-@(root,operator,4550) sbin/libretto-config