app-admin/qpage: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Fri, 29 Dec 2017 15:55:45 +0000 (16:55 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 29 Dec 2017 17:01:47 +0000 (18:01 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

app-admin/qpage/files/qpage-3.3-fix-build-system.patch [new file with mode: 0644]
app-admin/qpage/files/qpage-3.3-gentoo.patch
app-admin/qpage/metadata.xml
app-admin/qpage/qpage-3.3.ebuild

diff --git a/app-admin/qpage/files/qpage-3.3-fix-build-system.patch b/app-admin/qpage/files/qpage-3.3-fix-build-system.patch
new file mode 100644 (file)
index 0000000..0fd091d
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -65,12 +65,12 @@
+               @exit 1
+ 
+ install:      all
+-              $(RM) $(bindir)/$(PROG)
+-              $(MKDIR) -p $(bindir)
+-              $(CP) $(PROG) $(bindir)
+-              $(RM) $(mandir)/man1/$(PROG).1
+-              $(MKDIR) -p $(mandir)/man1
+-              $(CP) $(PROG).man $(mandir)/man1/$(PROG).1
++              $(RM) $(DESTDIR)$(bindir)/$(PROG)
++              $(MKDIR) -p $(DESTDIR)$(bindir)
++              $(CP) $(PROG) $(DESTDIR)$(bindir)
++              $(RM) $(DESTDIR)$(mandir)/man1/$(PROG).1
++              $(MKDIR) -p $(DESTDIR)$(mandir)/man1
++              $(CP) $(PROG).man $(DESTDIR)$(mandir)/man1/$(PROG).1
+ 
+ #             $(INSTALL) S99qpage /etc/rc3.d
+ #             ln /etc/rc3.d/S99qpage /etc/init.d/qpage
index 577fb8a4ff3bf4ceabf2b95bca52d21f5fbaf34e..72baf899764e0e5435ac3e7347904f50cbb99302 100644 (file)
@@ -1,5 +1,5 @@
---- config.input.dist  2003-04-11 14:03:36.000000000 -0700
-+++ config.input       2003-04-11 14:05:47.000000000 -0700
+--- a/config.input
++++ b/config.input
 @@ -20,7 +20,7 @@
  # See the QuickPage documentation for complete details about
  # the syntax of the configuration file.
@@ -18,8 +18,8 @@
  
  
  #
---- qpage.man.dist     2003-04-18 14:43:45.000000000 -0700
-+++ qpage.man  2003-04-18 14:43:55.000000000 -0700
+--- a/qpage.man
++++ b/qpage.man
 @@ -867,7 +867,7 @@
  must be able to detect when it's safe to send dial commands to the modem.
  .LP
@@ -29,8 +29,8 @@
  .SH SEE ALSO
  .B RFC-1861
  .SH KNOWN BUGS
---- example.cf.dist    2003-04-25 09:55:47.000000000 -0700
-+++ example.cf 2003-04-25 10:55:11.000000000 -0700
+--- a/example.cf
++++ b/example.cf
 @@ -21,7 +21,7 @@
  #
  #     modem=<modem name>
@@ -59,8 +59,8 @@
        baudrate=1200
        parity=even
        allowpid=yes
---- ixo.c.dist 2003-04-25 11:36:30.000000000 -0700
-+++ ixo.c      2003-04-25 11:37:37.000000000 -0700
+--- a/ixo.c
++++ b/ixo.c
 @@ -192,7 +192,7 @@
                if ((i = read_modem(fd, seconds)) < 0)
                        return(NULL);
index f61b7216e28ca33b0e6d31405881033946a89b1e..6ab99be94028a20c4fd3c80afb6395bf33f6ad75 100644 (file)
@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<maintainer type="person">
-       <email>chutzpah@gentoo.org</email>
-       <name>Patrick McLean</name>
-</maintainer>
-<longdescription lang="en">
-QuickPage is a client/server software package that enables you to send messages
-to an alphanumeric pager. The client accepts a message from the user and
-forwards it to a server using SNPP. The server uses a modem to transmit the
-message to the recipient's paging service using the TAP protocol (also known as
-the IXO protocol).
-</longdescription>
+       <maintainer type="person">
+               <email>chutzpah@gentoo.org</email>
+               <name>Patrick McLean</name>
+       </maintainer>
+       <longdescription lang="en">
+               QuickPage is a client/server software package that enables you to send messages
+               to an alphanumeric pager. The client accepts a message from the user and
+               forwards it to a server using SNPP. The server uses a modem to transmit the
+               message to the recipient's paging service using the TAP protocol (also known as
+               the IXO protocol).
+       </longdescription>
 </pkgmetadata>
index 01cddbc87320d9e59ad9d4c5e37b1deed1af1017..9231daae0add5a025d457bcaf17a1055c91fded7 100644 (file)
@@ -1,7 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-inherit eutils toolchain-funcs
+EAPI=6
+
+inherit toolchain-funcs
 
 DESCRIPTION="Sends messages to an alphanumeric pager via TAP protocol"
 HOMEPAGE="http://www.qpage.org/"
@@ -16,30 +18,26 @@ DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
 RDEPEND="${DEPEND}
        virtual/mta"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-
-       epatch "${FILESDIR}"/${P}-gentoo.patch
-       epatch "${FILESDIR}"/${P}-fix-warning.patch
-}
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-fix-warning.patch
+       "${FILESDIR}"/${P}-fix-build-system.patch
+)
 
-src_compile() {
+src_configure() {
        tc-export CC
-       econf || die "econf failed"
+       default
 
        # There doesn't seem to be a clean way to disable tcp wrappers in
        # this package if you have it installed, but don't want to use it.
        if ! use tcpd ; then
-               sed -i 's/-lwrap//g; s/-DTCP_WRAPPERS//g' Makefile
-               echo '#undef TCP_WRAPPERS' >> config.h
+               sed -i 's/-lwrap//g; s/-DTCP_WRAPPERS//g' Makefile || die
+               echo '#undef TCP_WRAPPERS' >> config.h || die
        fi
-
-       emake || die "emake failed"
 }
 
 src_install() {
-       einstall || die "einstall failed"
+       default
 
        dodir /var/spool/qpage
        fowners daemon:daemon /var/spool/qpage
@@ -50,7 +48,7 @@ src_install() {
        fperms 770 /var/lock/subsys/qpage
 
        insinto /etc/qpage
-       doins example.cf || die "doins example.cf failed"
+       doins example.cf
 
        doinitd "${FILESDIR}"/qpage
 }