Browse Source

cleanup: Remove expired ports:

2022-07-22 math/intervaltree: Dependent ports now use GH_TUPLE
2022-07-24 security/gnomint: Abandonware, depending on gconf2
2022-07-24 japanese/im-ja: Abandonware, depending on gconf2
2022-07-25 sysutils/mgeupsd: Last release is 23 years old. It is not clear what devices are supported.
main
Rene Ladan 2 weeks ago
parent
commit
3bc1119c58
  1. 4
      MOVED
  2. 1
      japanese/Makefile
  3. 69
      japanese/im-ja/Makefile
  4. 2
      japanese/im-ja/distinfo
  5. 15
      japanese/im-ja/files/patch-src_Makefile.in
  6. 11
      japanese/im-ja/files/patch-src_helper_helper-socket.c
  7. 11
      japanese/im-ja/files/patch-src_xim_Makefile.in
  8. 11
      japanese/im-ja/pkg-descr
  9. 44
      japanese/im-ja/pkg-plist
  10. 1
      math/Makefile
  11. 30
      math/intervaltree/Makefile
  12. 3
      math/intervaltree/distinfo
  13. 6
      math/intervaltree/pkg-descr
  14. 1
      security/Makefile
  15. 33
      security/gnomint/Makefile
  16. 2
      security/gnomint/distinfo
  17. 15
      security/gnomint/files/patch-configure
  18. 11
      security/gnomint/files/patch-src__Makefile.in
  19. 29
      security/gnomint/files/patch-src__import.c
  20. 31
      security/gnomint/files/patch-src_ca__file.h
  21. 5
      security/gnomint/pkg-descr
  22. 45
      security/gnomint/pkg-plist
  23. 1
      sysutils/Makefile
  24. 27
      sysutils/mgeupsd/Makefile
  25. 2
      sysutils/mgeupsd/distinfo
  26. 15
      sysutils/mgeupsd/files/mgeupsd.sh
  27. 21
      sysutils/mgeupsd/files/patch-Makefile
  28. 47
      sysutils/mgeupsd/files/patch-mgeupsd.c
  29. 12
      sysutils/mgeupsd/files/pkg-message.in
  30. 36
      sysutils/mgeupsd/files/powerhandler
  31. 8
      sysutils/mgeupsd/pkg-descr

4
MOVED

@ -17513,3 +17513,7 @@ net/py-pyroute2.ipset|net/py-pyroute2|2022-07-18|Remove obsoleted port. Upstream
net/py-pyroute2.ndb|net/py-pyroute2|2022-07-18|Remove obsoleted port. Upstream moves back to single package layout (net/py-pyroute2)
net/py-pyroute2.nftables|net/py-pyroute2|2022-07-18|Remove obsoleted port. Upstream moves back to single package layout (net/py-pyroute2)
net/py-pyroute2.nslink|net/py-pyroute2|2022-07-18|Remove obsoleted port. Upstream moves back to single package layout (net/py-pyroute2)
math/intervaltree||2022-07-27|Has expired: Dependent ports now use GH_TUPLE
security/gnomint||2022-07-27|Has expired: Abandonware, depending on gconf2
japanese/im-ja||2022-07-27|Has expired: Abandonware, depending on gconf2
sysutils/mgeupsd||2022-07-27|Has expired: Last release is 23 years old. It is not clear what devices are supported.

1
japanese/Makefile

@ -124,7 +124,6 @@
SUBDIR += ibus-mozc
SUBDIR += ibus-skk
SUBDIR += icanna
SUBDIR += im-ja
SUBDIR += ipadic
SUBDIR += ja-tex-xdvik
SUBDIR += jacode.pl

69
japanese/im-ja/Makefile

@ -1,69 +0,0 @@
PORTNAME= im-ja
PORTVERSION= 1.5
PORTREVISION= 15
CATEGORIES= japanese x11-toolkits
MASTER_SITES= http://im-ja.sourceforge.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= Japanese input module for GTK2
DEPRECATED= Abandonware, depending on gconf2
EXPIRATION_DATE= 2022-07-24
OPTIONS_DEFINE= ANTHY CANNA WNN
OPTIONS_DEFAULT=ANTHY CANNA WNN
ANTHY_DESC= Use Anthy
CANNA_DESC= Use Canna
WNN_DESC= Use FreeWnn
USES= gettext gmake gnome libtool pathfix perl5 pkgconfig
USE_GNOME= gconf2 gnomeprefix intlhack libglade2
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-schemas-install # Avoid stage violation
CONFIGURE_ARGS+= --disable-gnome
GCONF_SCHEMAS= im-ja.schemas
CPPFLAGS+= -I${LOCALBASE}/include -DNO_MALLOC_H
LIBS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MANTHY}
LIB_DEPENDS+= libanthy.so:japanese/anthy
.else
CONFIGURE_ARGS+= --disable-anthy
.endif
.if ${PORT_OPTIONS:MCANNA}
LIB_DEPENDS+= libRKC.so:japanese/canna-lib
.else
CONFIGURE_ARGS+= --disable-canna
.endif
.if ${PORT_OPTIONS:MWNN}
LIB_DEPENDS+= libwnn.so:japanese/FreeWnn-lib
.else
CONFIGURE_ARGS+= --disable-wnn
.endif
post-patch:
${FIND} ${WRKSRC} -name configure.in | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name aclocal.m4 | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name configure | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name config.h.in | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name Makefile.am | ${XARGS} ${TOUCH}
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${TOUCH}
@${REINPLACE_CMD} -e 's|$$(datadir)/gconf|$$(sysconfdir)/gconf|g' \
${WRKSRC}/data/Makefile.in
@${REINPLACE_CMD} '/^im_ja_la_LIBADD =/s/$$/ -lm/' \
${WRKSRC}/src/gtk/Makefile.in
@${REINPLACE_CMD} '/^im_ja_helper_LDADD =/s/$$/ -lX11/' \
${WRKSRC}/src/helper/Makefile.in
@${REINPLACE_CMD} '/^im_ja_le_la_LIBADD =/s/$$/ -lm/' \
${WRKSRC}/src/iiimf/Makefile.in
@${REINPLACE_CMD} '/^im_ja_xim_server_LDADD =/s/$$/ -lm/' \
${WRKSRC}/src/xim/Makefile.in
.include <bsd.port.mk>

2
japanese/im-ja/distinfo

@ -1,2 +0,0 @@
SHA256 (im-ja-1.5.tar.gz) = 96f4ed82706a873bdade99a934a1a66431f146758837ed0f007e3c145649f780
SIZE (im-ja-1.5.tar.gz) = 905539

15
japanese/im-ja/files/patch-src_Makefile.in

@ -1,15 +0,0 @@
--- src/Makefile.in.ORIG Mon Apr 12 08:00:59 2004
+++ src/Makefile.in Mon Apr 12 08:01:22 2004
@@ -512,12 +512,6 @@
uninstall-recursive
-hiragana-convtable.h: hiragana-convtable.txt
- perl convtable.pl hiragana
-zenkaku-convtable.h: zenkaku-convtable.txt
- perl convtable.pl zenkaku
-halfkata-convtable.h: halfkata-convtable.txt
- perl convtable.pl halfkata
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

11
japanese/im-ja/files/patch-src_helper_helper-socket.c

@ -1,11 +0,0 @@
--- src/helper/helper-socket.c.orig Tue Apr 12 20:10:13 2005
+++ src/helper/helper-socket.c Thu Dec 29 23:05:18 2005
@@ -25,6 +25,8 @@
#include <glib.h>
+#include <sys/types.h>
+#include <sys/time.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/types.h>

11
japanese/im-ja/files/patch-src_xim_Makefile.in

@ -1,11 +0,0 @@
--- src/xim/Makefile.in.ORIG Mon Apr 12 07:58:51 2004
+++ src/xim/Makefile.in Mon Apr 12 07:59:06 2004
@@ -1663,7 +1663,7 @@
IMdkit/libXimd.a :
- cd IMdkit; make
+ cd IMdkit; $(MAKE)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

11
japanese/im-ja/pkg-descr

@ -1,11 +0,0 @@
im-ja is a Japanese input module for GTK2.
Currently supported input modes are: hiragana, katakana, half-width
katakana, zenkaku, Canna, FreeWnn, and Kanji character recognition
(based on Kanjipad).
Conversion hotkeys, status window, preedit text colors, etc. can be
customized through a GUI. An optional applet is also included for the
gnome-panel which can be used to display and change the input method.
WWW: http://im-ja.sourceforge.net/

44
japanese/im-ja/pkg-plist

@ -1,44 +0,0 @@
bin/im-ja-conf
bin/im-ja-xim-server
lib/gtk-2.0/%%GTK2_VERSION%%/immodules/im-ja.so
libexec/im-ja/im-ja-helper
libexec/im-ja/kpengine
man/man1/im-ja-conf.1.gz
man/man1/im-ja-xim-server.1.gz
share/applications/im-ja.desktop
share/im-ja/01.unistrok
share/im-ja/02.unistrok
share/im-ja/03.unistrok
share/im-ja/04.unistrok
share/im-ja/05.unistrok
share/im-ja/06.unistrok
share/im-ja/07.unistrok
share/im-ja/08.unistrok
share/im-ja/09.unistrok
share/im-ja/10.unistrok
share/im-ja/11.unistrok
share/im-ja/12.unistrok
share/im-ja/13.unistrok
share/im-ja/14.unistrok
share/im-ja/15.unistrok
share/im-ja/16.unistrok
share/im-ja/17.unistrok
share/im-ja/18.unistrok
share/im-ja/19.unistrok
share/im-ja/20.unistrok
share/im-ja/21.unistrok
share/im-ja/22.unistrok
share/im-ja/23.unistrok
share/im-ja/im-ja-conf.glade
share/im-ja/im-ja-doc.html
share/im-ja/im-ja-symbols.txt
share/im-ja/radkfile.utf8
share/pixmaps/im-ja-about.jpg
share/pixmaps/im-ja-capplet.png
share/locale/ca/LC_MESSAGES/im-ja.mo
share/locale/de/LC_MESSAGES/im-ja.mo
share/locale/es/LC_MESSAGES/im-ja.mo
share/locale/hu/LC_MESSAGES/im-ja.mo
share/locale/ja/LC_MESSAGES/im-ja.mo
@postexec if [ -f %D/bin/gtk-query-immodules-2.0 ]; then %D/bin/gtk-query-immodules-2.0 --update-cache; fi
@postunexec if [ -f %D/bin/gtk-query-immodules-2.0 ]; then %D/bin/gtk-query-immodules-2.0 --update-cache; fi

1
math/Makefile

@ -388,7 +388,6 @@
SUBDIR += ignition-math
SUBDIR += igraph
SUBDIR += iml
SUBDIR += intervaltree
SUBDIR += intx
SUBDIR += ipopt
SUBDIR += ised

30
math/intervaltree/Makefile

@ -1,30 +0,0 @@
PORTNAME= intervaltree
DISTVERSION= g20151213
PORTREVISION= 2
CATEGORIES= math
MAINTAINER= jwb@FreeBSD.org
COMMENT= Minimal C++ interval tree implementation
LICENSE= MIT
DEPRECATED= Dependent ports now use GH_TUPLE
EXPIRATION_DATE= 2022-07-22
USES= compiler:c++0x
USE_GITHUB= yes
GH_ACCOUNT= ekg
GH_TAGNAME= 8fc4be91866237995e1105689d84bece619f4663
INSTALL_TARGET= install-strip
PLIST_FILES= bin/interval_tree_test include/${PORTNAME}/IntervalTree.h
.include <bsd.port.pre.mk>
.if ${ARCH} == i386 || ${ARCH} == powerpc
post-patch:
${REINPLACE_CMD} -e 's|<bool, unsigned long>|<bool, unsigned int>|g' \
${WRKSRC}/interval_tree_test.cpp
.endif
.include <bsd.port.post.mk>

3
math/intervaltree/distinfo

@ -1,3 +0,0 @@
TIMESTAMP = 1523601658
SHA256 (ekg-intervaltree-g20151213-8fc4be91866237995e1105689d84bece619f4663_GH0.tar.gz) = 126f0d0d313e43cd32a07b3a2e573112f4a0e69f5d1618fa38185b93c0f6a696
SIZE (ekg-intervaltree-g20151213-8fc4be91866237995e1105689d84bece619f4663_GH0.tar.gz) = 71387

6
math/intervaltree/pkg-descr

@ -1,6 +0,0 @@
An interval tree can be used to efficiently find a set of numeric intervals
overlapping or containing another interval. This library provides a basic
implementation of an interval tree using C++ templates, allowing the insertion
of arbitrary types into the tree.
WWW: https://github.com/ekg/intervaltree

1
security/Makefile

@ -170,7 +170,6 @@
SUBDIR += gnome-keyring
SUBDIR += gnome-keyring-sharp
SUBDIR += gnome-ssh-askpass
SUBDIR += gnomint
SUBDIR += gnupg
SUBDIR += gnupg-pkcs11-scd
SUBDIR += gnupg1

33
security/gnomint/Makefile

@ -1,33 +0,0 @@
PORTNAME= gnomint
PORTVERSION= 1.2.1
PORTREVISION= 13
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= X.509 Certification Authority management tool
DEPRECATED= Abandonware, depending on gconf2
EXPIRATION_DATE= 2022-07-24
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgnutls.so:security/gnutls \
libsqlite3.so:databases/sqlite3
GNU_CONFIGURE= yes
USES= gettext-tools gmake gnome perl5 pkgconfig readline
USE_GNOME= gconf2 gdkpixbuf2 glib20 gtk20 intltool
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext-runtime
NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.mk>

2
security/gnomint/distinfo

@ -1,2 +0,0 @@
SHA256 (gnomint-1.2.1.tar.gz) = 6186ca6073e912bad5e0b026bc704430098a54392f3741d62929cc6fca3c38b0
SIZE (gnomint-1.2.1.tar.gz) = 703316

15
security/gnomint/files/patch-configure vendored

@ -1,15 +0,0 @@
--- ./configure.orig 2010-08-11 04:12:26.000000000 -0500
+++ ./configure 2013-02-18 10:26:44.000000000 -0600
@@ -14337,12 +14337,6 @@
-if test "x$GCC" = "xyes"; then
- CFLAGS="-Wall -Werror"
- if test "x$use_debug" = "xYes"; then
- CFLAGS="$CFLAGS -g -O0"
- fi
-fi

11
security/gnomint/files/patch-src__Makefile.in

@ -1,11 +0,0 @@
--- ./src/Makefile.in.orig 2010-08-11 04:12:26.000000000 -0500
+++ ./src/Makefile.in 2013-02-18 10:28:58.000000000 -0600
@@ -98,7 +98,7 @@
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
+ $(AM_LDFLAGS) $(LDFLAGS) -lgcrypt -o $@
SOURCES = $(gnomint_SOURCES) $(gnomint_cli_SOURCES)
DIST_SOURCES = $(gnomint_SOURCES) $(gnomint_cli_SOURCES)
ETAGS = etags

29
security/gnomint/files/patch-src__import.c

@ -1,29 +0,0 @@
--- src/import.c.orig 2010-05-31 23:01:37.000000000 +0200
+++ src/import.c 2014-07-22 16:11:44.000000000 +0200
@@ -695,7 +695,7 @@
// After having all the parts unencrypted, we import all certificates first.
for (i=0; i<n_bags; i++) {
- gnutls_pkcs12_bag * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);
+ gnutls_pkcs12_bag_t * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);
guint num_elements_in_bag = gnutls_pkcs12_bag_get_count (*pkcs12_bag);
for (i=0; i < num_elements_in_bag; i++) {
@@ -722,7 +722,7 @@
// Then, we import all PKCS8 private keys.
for (i=0; i<n_bags; i++) {
- gnutls_pkcs12_bag * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);
+ gnutls_pkcs12_bag_t * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);
guint num_elements_in_bag = gnutls_pkcs12_bag_get_count (*pkcs12_bag);
for (i=0; i < num_elements_in_bag; i++) {
@@ -796,7 +796,7 @@
// Then we import the CRLs
for (i=0; i<n_bags; i++) {
- gnutls_pkcs12_bag * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);
+ gnutls_pkcs12_bag_t * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);
guint num_elements_in_bag = gnutls_pkcs12_bag_get_count (*pkcs12_bag);
for (i=0; i < num_elements_in_bag; i++) {

31
security/gnomint/files/patch-src_ca__file.h

@ -1,31 +0,0 @@
--- src/ca_file.h.orig 2010-05-31 21:01:37 UTC
+++ src/ca_file.h
@@ -75,8 +75,7 @@ enum {CA_FILE_CA_COLUMN_ID=0,
CA_FILE_CA_COLUMN_DN=3,
CA_FILE_CA_COLUMN_PARENT_DN=4,
CA_FILE_CA_COLUMN_PEM=5,
- CA_FILE_CA_COLUMN_NUMBER=6}
- CaFileCAColumns;
+ CA_FILE_CA_COLUMN_NUMBER=6};
enum {CA_FILE_CERT_COLUMN_ID=0,
CA_FILE_CERT_COLUMN_IS_CA=1,
@@ -90,16 +89,14 @@ enum {CA_FILE_CERT_COLUMN_ID=0,
CA_FILE_CERT_COLUMN_DN=9,
CA_FILE_CERT_COLUMN_PARENT_DN=10,
CA_FILE_CERT_COLUMN_PARENT_ROUTE=11,
- CA_FILE_CERT_COLUMN_NUMBER=12}
- CaFileCertColumns;
+ CA_FILE_CERT_COLUMN_NUMBER=12};
enum {CA_FILE_CSR_COLUMN_ID=0,
CA_FILE_CSR_COLUMN_SUBJECT=1,
CA_FILE_CSR_COLUMN_PRIVATE_KEY_IN_DB=2,
CA_FILE_CSR_COLUMN_PEM=3,
CA_FILE_CSR_COLUMN_PARENT_ID=4,
- CA_FILE_CSR_COLUMN_NUMBER=5}
- CaFileCSRColumns;
+ CA_FILE_CSR_COLUMN_NUMBER=5};
gboolean ca_file_foreach_ca (CaFileCallbackFunc func, gpointer userdata);

5
security/gnomint/pkg-descr

@ -1,5 +0,0 @@
gnoMint is an X.509 Certificate Authority (CA) management tool with both a GTK
and command-line interface. It allows anyone to create and manage a CA without
having to write configuration files or remember long command-line arguments.
WWW: http://gnomint.sourceforge.net/

45
security/gnomint/pkg-plist

@ -1,45 +0,0 @@
bin/gnomint
bin/gnomint-cli
bin/gnomint-upgrade-db
share/pixmaps/gnomint.png
share/applications/gnomint.desktop
%%DATADIR%%/addca.png
%%DATADIR%%/addcsr.png
%%DATADIR%%/ca-stamp-16.png
%%DATADIR%%/certificate_popup_menu.ui
%%DATADIR%%/certificate_properties_dialog.ui
%%DATADIR%%/change_password_dialog.ui
%%DATADIR%%/creation_process_window.ui
%%DATADIR%%/csr_popup_menu.ui
%%DATADIR%%/csr_properties_dialog.ui
%%DATADIR%%/dh_parameters_dialog.ui
%%DATADIR%%/export_certificate_dialog.ui
%%DATADIR%%/extractpkey.png
%%DATADIR%%/get_db_password_dialog.ui
%%DATADIR%%/get_password_dialog.ui
%%DATADIR%%/get_pkey_dialog.ui
%%DATADIR%%/gnomint.png
%%DATADIR%%/import_file_or_directory_dialog.ui
%%DATADIR%%/import_password_dialog.ui
%%DATADIR%%/key-16.png
%%DATADIR%%/main_window.ui
%%DATADIR%%/new_ca_window.ui
%%DATADIR%%/new_cert_window.ui
%%DATADIR%%/new_crl_dialog.ui
%%DATADIR%%/new_req_window.ui
%%DATADIR%%/preferences_dialog.ui
%%DATADIR%%/sign.png
share/mime/packages/gnomint.xml
etc/gconf/schemas/gnomint.schemas
%%NLS%%share/locale/ca/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/cs/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/de/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/es/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/fi/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/fr/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/it/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/oc/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/ru/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/sk/LC_MESSAGES/gnomint.mo
%%NLS%%share/locale/sv/LC_MESSAGES/gnomint.mo

1
sysutils/Makefile

@ -731,7 +731,6 @@
SUBDIR += memtester
SUBDIR += metalog
SUBDIR += mfid
SUBDIR += mgeupsd
SUBDIR += minikube
SUBDIR += minimunin
SUBDIR += minipot

27
sysutils/mgeupsd/Makefile

@ -1,27 +0,0 @@
PORTNAME= mgeupsd
PORTVERSION= 0.3
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SUNSITE/system/ups
MAINTAINER= ports@FreeBSD.org
COMMENT= Monitor a state of MGE Pulsar UPS connected to RS-232 port
DEPRECATED= Last release is 23 years old. It is not clear what devices are supported.
EXPIRATION_DATE= 2022-07-25
USES= gmake
WRKSRC= ${WRKDIR}/MGE
PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/mgeupsd sbin/powerhandler etc/rc.d/mgeupsd.sh
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e '/^CC=/s:gcc:${CC}:' \
-e '/^CFLAGS=/s:-Wall -O2:${CFLAGS}:' ${WRKSRC}/Makefile
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/mgeupsd.sh ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${FILESDIR}/powerhandler ${STAGEDIR}${PREFIX}/sbin
.include <bsd.port.mk>

2
sysutils/mgeupsd/distinfo

@ -1,2 +0,0 @@
SHA256 (mgeupsd-0.3.tar.gz) = 77ba3b8b4b08c5d03bcc7a921fb9a3fe5ee839d0d1e9009e7ff4641b7beafd3a
SIZE (mgeupsd-0.3.tar.gz) = 9196

15
sysutils/mgeupsd/files/mgeupsd.sh

@ -1,15 +0,0 @@
#!/bin/sh
if [ "X${1}" = "Xstart" ]
then
/usr/local/sbin/mgeupsd -run /usr/local/sbin/powerhandler /dev/cuaa0
echo -n ' mgeupsd'
elif [ "X${1}" = "Xstop" ]
then
kill `cat /var/run/mgeupsd.pid`
rm -f /var/run/mgeupsd.pid
rm -f /var/run/powerstatus
echo -n ' mgeupsd'
else
echo "Usage: `basename $0` { start | stop }"
exit 1
fi

21
sysutils/mgeupsd/files/patch-Makefile

@ -1,21 +0,0 @@
--- Makefile.orig 1998-12-25 09:10:57 UTC
+++ Makefile
@@ -1,5 +1,5 @@
-CC=gcc
-CFLAGS=-Wall -O2
+CC=cc
+CFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing
LDFLAGS=-s
all: mgeupsd
@@ -8,8 +8,8 @@ mgeupsd: mgeupsd.o
$(CC) $(LDFLAGS) -o $@ $<
install: mgeupsd
- install mgeupsd /sbin
- install mgeupsd.8 /usr/man/man8
+ install -c mgeupsd $(DESTDIR)${PREFIX}/sbin
+ install -c mgeupsd.8 $(DESTDIR)${PREFIX}/man/man8
clean:
rm -f *.o mgeupsd

47
sysutils/mgeupsd/files/patch-mgeupsd.c

@ -1,47 +0,0 @@
--- mgeupsd.c.orig 1998-12-26 10:42:52 UTC
+++ mgeupsd.c
@@ -33,9 +33,9 @@ int RTS = TIOCM_RTS, use_syslog = 0;
#define BS_TDP 12
/* status file for init */
-#define PWRFILE "/etc/powerstatus"
+#define PWRFILE "/var/run/powerstatus"
/* Linux usual */
-#define LOCKDIR "/var/lock"
+#define LOCKDIR "/var/run"
#define RUNDIR "/var/run"
char lockfile[40] = {0,};
char pidfile[40] = {0,};
@@ -640,7 +640,7 @@ operate:
else
{
#ifndef TEST
- if (kill (init_pid, SIGPWR))
+ if (kill (init_pid, SIGUSR2))
syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
#endif
}
@@ -677,7 +677,7 @@ operate:
else
{
#ifndef TEST
- if (kill (init_pid, SIGPWR))
+ if (kill (init_pid, SIGINT))
syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
#endif
}
@@ -711,7 +711,7 @@ operate:
else
{
#ifndef TEST
- if (kill (init_pid, SIGPWR))
+ if (kill (init_pid, SIGHUP))
syslog (LOG_CRIT, "Process %u doesn not exist! Can't send SIGPWR", init_pid);
#endif
}
@@ -758,4 +758,5 @@ operate:
}
} /* while(1) */
}
+ return 0;
}

12
sysutils/mgeupsd/files/pkg-message.in

@ -1,12 +0,0 @@
[
{ type: install
message: <<EOM
A configuration file has been installed in %%PREFIX%%/etc/rc.d/mgeupsd.sh.
Examine it to make sure it is suitable for your system.
A sample script that handles the various power messages has been placed in
%%PREFIX%%/sbin/powerhandler. You will probably want to edit it to suit
your particular needs.
EOM
}
]

36
sysutils/mgeupsd/files/powerhandler

@ -1,36 +0,0 @@
#!/bin/sh
PATH=${PATH}:/sbin:/usr/sbin:/usr/local/sbin;export PATH
STATUS=`cat ${1}`
L="logger -i -t powerhandler"
${L} "Status message received: ${STATUS}"
if [ "X${STATUS}" = "XFAIL" ]
then
${L} "Power loss detected, initiating shutdown"
# we are shutting down... give users some warning
shutdown -h +5 "POWER FAILURE DETECTED... initiating emergency shutdown... SAVE YOUR WORK NOW AND LOGOFF!!!"
elif [ "X${STATUS}" = "XLOWBATT" ]
then
${L} "Battery is critical, initiating IMMEDIATE shutdown"
# battery is low.. shut down NOW!
# first nix any shutdown processes
killall shutdown
shutdown -h now "BATTERY IS LOW... SHUTTING DOWN **IMMEDIATELY**..."
elif [ "X${STATUS}" = "XOK" ]
then
${L} "Power has been restored, canceling shutdown"
# everything's ok... cancel the shutdown
killall shutdown
rm -f /var/run/nologin
wall << _EOF_
System power has been restored.
The shutdown procedure has been canceled.
_EOF_
else
# unknown state... help!
${L} "this shouldn't be happening!"
exit 1
fi

8
sysutils/mgeupsd/pkg-descr

@ -1,8 +0,0 @@
mgeupsd is a daemon process that sits in the background and check
state of the UPS every 10 (by default) seconds. As soon as mgeupsd
senses that the power is failing it notifies init(8) and init will
execute the powerwait and powerfail entries. If mgeupsd senses that
the power has been restored, it notifies init again and init will exe-
cute the powerokwait entries. If mgeupsd senses that the UPS batteries
has less than 20% of its energy it notifies init again and init will
execute the powerfailnow entries.
Loading…
Cancel
Save