add Cityruf service (#105676)
authorAlin Năstac <mrness@gentoo.org>
Sat, 15 Oct 2005 07:57:30 +0000 (07:57 +0000)
committerAlin Năstac <mrness@gentoo.org>
Sat, 15 Oct 2005 07:57:30 +0000 (07:57 +0000)
Package-Manager: portage-2.0.51.22-r3

app-mobilephone/yaps/ChangeLog
app-mobilephone/yaps/Manifest
app-mobilephone/yaps/files/digest-yaps-0.96-r1 [new file with mode: 0644]
app-mobilephone/yaps/files/yaps-0.96-gentoo.patch [new file with mode: 0644]
app-mobilephone/yaps/yaps-0.96-r1.ebuild [new file with mode: 0644]

index df0137aecf6ef444736446092cbf24635af76c32..7f40f84749bff852c39665a67744b85f8c6f7542 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-mobilephone/yaps
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/yaps/ChangeLog,v 1.5 2005/10/13 05:01:42 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/yaps/ChangeLog,v 1.6 2005/10/15 07:57:30 mrness Exp $
+
+*yaps-0.96-r1 (15 Oct 2005)
+
+  15 Oct 2005; Alin Nastac <mrness@gentoo.org>
+  +files/yaps-0.96-gentoo.patch, +yaps-0.96-r1.ebuild:
+  Add Cityruf service to yaps.rc (#105676).
 
   13 Oct 2005; Alin Nastac <mrness@gentoo.org> yaps-0.96.ebuild:
   Remove COPYRIGHT and INSTALL from docs.
index 9fe9384e2976535e9cb535f24cea7707824f3c30..09db234e223726f745964e9865b4bffb052f8fee 100644 (file)
@@ -2,15 +2,18 @@
 Hash: SHA1
 
 MD5 69e77ba8276e4ac896dfb9ea0a5e385f yaps-0.96.ebuild 1705
-MD5 4bd60c2e8d8ea87f4a5c3d015fc08403 ChangeLog 844
+MD5 b7ad315314ccaeebdb971d92dea2fdd5 ChangeLog 1020
 MD5 2e3ea70bd2303c7b7915e056bdd44066 metadata.xml 258
+MD5 1752094160adb45d845df8165dc8ac27 yaps-0.96-r1.ebuild 1716
 MD5 8cd1ba9738bbe553fc3d400dd7f7c20c files/yaps-0.96.patch 9867
+MD5 5b713d70117b792c0fa6a519f8c0b208 files/digest-yaps-0.96-r1 121
+MD5 c2e46937aabed37f4cf0d69954e3f058 files/yaps-0.96-gentoo.patch 10516
 MD5 5b713d70117b792c0fa6a519f8c0b208 files/digest-yaps-0.96 121
 MD5 836bccf5ccea5152fa69261df18d3bb9 files/yaps-0.96-capiv3.patch 1820
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.1 (GNU/Linux)
 
-iD8DBQFDTepNNSP4Vda7IdsRAr9PAJ93X/qRYROTCMUkccCYn4+IroUGhgCdEnZW
-3LcUqXrsd1yvRXO4vRwNnzo=
-=yOj6
+iD8DBQFDULaCNSP4Vda7IdsRAntuAJ4gvwdHDMxwImkidI9kwTfvezCIwgCgkBR8
+I6r/LCVkl8TmNENCjFADmbI=
+=KjIS
 -----END PGP SIGNATURE-----
diff --git a/app-mobilephone/yaps/files/digest-yaps-0.96-r1 b/app-mobilephone/yaps/files/digest-yaps-0.96-r1
new file mode 100644 (file)
index 0000000..c4b03dc
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 69857a8eb69ce660ffae5bcc66df78e7 yaps-0.96.c2.tgz 108686
+MD5 6b5afb26526cb20f0995e5bb2cfa494e yaps-0.96.tar.gz 91060
diff --git a/app-mobilephone/yaps/files/yaps-0.96-gentoo.patch b/app-mobilephone/yaps/files/yaps-0.96-gentoo.patch
new file mode 100644 (file)
index 0000000..1ff6100
--- /dev/null
@@ -0,0 +1,446 @@
+diff -Nru yaps-0.96.orig/Config yaps-0.96/Config
+--- yaps-0.96.orig/Config      1997-06-14 13:32:18.000000000 +0300
++++ yaps-0.96/Config   2005-10-15 10:32:51.751042480 +0300
+@@ -24,9 +24,9 @@
+ #     Name of local configuration file (location is $HOME.)
+ YAPS_LCFGFILE         = .yapsrc
+ #     Directory for installing the binary
+-YAPS_BINDIR   = /usr/local/bin
++YAPS_BINDIR   = /usr/bin
+ #     Directory for optional support files
+-YAPS_LIBDIR   = /usr/local/lib/yaps
++YAPS_LIBDIR   = /usr/lib/yaps
+ #     User/Group/Mode for yaps
+ YAPS_USER     = bin
+ YAPS_GROUP    = uucp
+@@ -43,12 +43,12 @@
+ ifdef SLANG
+ LDEFS += -DSCRIPT_SLANG
+ LLIBS += -lslang
+-MATH  = True
++#MATH = True
+ endif
+ ifdef LUA
+ LDEFS += -DSCRIPT_LUA
+-LLIBS += -llualib -llua
+-MATH  = True
++LLIBS += `pkg-config --libs lua`
++#MATH = True
+ endif
+ ifdef MATH
+ LLIBS += -lm
+diff -Nru yaps-0.96.orig/Makefile yaps-0.96/Makefile
+--- yaps-0.96.orig/Makefile    1997-06-06 14:45:35.000000000 +0300
++++ yaps-0.96/Makefile 2005-10-15 10:32:51.752042328 +0300
+@@ -33,19 +33,19 @@
+       lynx -cfg=/dev/null -nolist -dump $< > $@
+ 
+ install:      $(DSTFLE) $(CFGFILE)
+-      if [ ! -d $(YAPS_LIBDIR) ]; then \
+-              install -d -m 755 -o $(YAPS_USER) -g $(YAPS_GROUP) $(YAPS_LIBDIR) ; \
++      if [ ! -d $(DESTDIR)$(YAPS_LIBDIR) ]; then \
++              install -d -m 755 $(DESTDIR)$(YAPS_LIBDIR) ; \
+       fi
+       @if [ -f contrib/Makefile ]; then       \
+               $(MAKE) -C contrib install ;    \
+       fi
+ 
+ $(DSTFLE):    yaps
+-      install -o $(YAPS_USER) -g $(YAPS_GROUP) -m $(YAPS_MODE) -s yaps $@
++      install -m $(YAPS_MODE) -s yaps $(DESTDIR)$@
+ 
+ $(CFGFILE):   yaps.rc
+       @if [ ! -f $@ ]; then \
+-              install -o $(YAPS_RCUSER) -g $(YAPS_RCGROUP) -m $(YAPS_RCMODE) -s yaps.rc $@ ; \
++              install -m $(YAPS_RCMODE) -s yaps.rc $(DESTDIR)$@ ; \
+       fi
+ 
+ clean:
+diff -Nru yaps-0.96.orig/yaps.rc yaps-0.96/yaps.rc
+--- yaps-0.96.orig/yaps.rc     1997-06-11 20:39:06.000000000 +0300
++++ yaps-0.96/yaps.rc  2005-10-15 10:34:40.313095952 +0300
+@@ -9,26 +9,28 @@
+ #     This is a comma seperated list of available services. This
+ #     is required for autodetect the matching service for a
+ #     pager-id
+-services      D1,D2,E+
+-+services     Telmi,Telmi-Fun,Telmi-Family,Telmi-Top,Telmi-Pro
+-+services     Skyper,Quix
++services        D1-0160, D1-0170, D1-0171, D1-0175
+++services       D2-0172, D2-0173, D2-0174, D2-0174
+++services       E+0177, E+0178
+++services       Telmi,Telmi-Fun,Telmi-Family,Telmi-Top,Telmi-Pro
+++services       Skyper,Quix,Cityruf
+ #
+ #     This is the default caller-id. If the protocol/service allowes
+ #     it, this is inserted in the message (and the receiver gets this
+ #     as the sender's number)
+-call-id               +1-(555)-1234
++#call-id              0123-4567890
+ #
+ #     If you forget to sign your message, you can automatically append
+ #     this string to each message.
+-signature     (It's me!)
++#signature    NAME
+ #
+ #     You can either switch the use of the signature here on for all
+ #     services or in each service section for that particular service.
+-use-signature True
++#use-signature        True
+ #
+ #     To get more verbose output when running yaps increase this value.
+ #     Currently 4 is the highest supported value.
+-verbose               0
++verbose               4
+ #
+ #     If you'd like to log every sending session define this. It should
+ #     point to a writeable file. If you install the software setgid, then
+@@ -88,12 +90,12 @@
+ #
+ #     Most services limit the length of a message to a specific length.
+ #     Enter the value here to check valid messages
+-#max-size     160
++max-size      160
+ 
+ #
+ #     If a message is longer than max-size, you can set this to split
+ #     it off into several single messages of allowed length
+-#may-split    True
++may-split     True
+ 
+ #
+ #     If a message is longer than max-size, you can set this to truncate
+@@ -107,7 +109,7 @@
+ 
+ #
+ #     If the service allows using your caller-id set this to True.
+-#use-call-id  True
++use-call-id   True
+ 
+ #
+ #     If the service is reachable over a phonenumber where the pager-id
+@@ -186,7 +188,8 @@
+ 
+ #
+ #     Set this to the modem device you wish to use
+-#device               /dev/modem
++device                /dev/ttyS0
++#device               /dev/ttyI5
+ #device               /dev/cua1
+ #device               /dev/cua/a
+ 
+@@ -194,7 +197,7 @@
+ #     Set this to the prefix of the lockfile use for the device. There
+ #     are several places, and two common formats:
+ #lock-prefix  /usr/spool/uucp/LCK..
+-#lock-prefix  /var/spool/lock/LCK..
++lock-prefix   /var/spool/lock/LCK..
+ #lock-prefix  /var/spool/locks/LK.
+ 
+ #
+@@ -223,7 +226,57 @@
+ #
+ #     D1 (by Deutsche Telekom)
+ #
+-[D1]
++[D1-0160]
++protocol      tap
++valid-pid     0160|0049160|49160
++change-pid    0160
++convert               *no-8bit,cv-d1
++cv-d1         {
++      Ä       [
++      Ö       \
++      Ü       ~
++      ä       {
++      ö       |
++      ü       ~
++      ß       ^]
++}
+++cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++phone         01712092522
++# use this number for isdn-dialin:
++# phone           01712521001
++max-size      160
++may-split     True
++use-call-id   False
++tap-old               True
++#
++#----------------------------------------------------------
++#
++[D1-0170]
++protocol      tap
++valid-pid     0170|0049170|49170
++change-pid    0170
++convert               *no-8bit,cv-d1
++cv-d1         {
++      Ä       [
++      Ö       \
++      Ü       ~
++      ä       {
++      ö       |
++      ü       ~
++      ß       ^]
++}
+++cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++phone         01712092522
++# use this number for isdn-dialin:
++# phone           01712521001
++max-size      160
++may-split     True
++use-call-id   False
++tap-old               True
++#
++#----------------------------------------------------------
++#
++[D1-0171]
+ protocol      tap
+ valid-pid     0171|0049171|49171
+ change-pid    0171
+@@ -239,21 +292,100 @@
+ }
+ +cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
+ phone         01712092522
++# use this number for isdn-dialin:
++# phone           01712521001
++max-size      160
++may-split     True
++use-call-id   False
++tap-old               True
++#
++#----------------------------------------------------------
++#
++[D1-0175]
++protocol      tap
++valid-pid     0175|0049175|49175
++change-pid    0175
++convert               *no-8bit,cv-d1
++cv-d1         {
++      Ä       [
++      Ö       \
++      Ü       ~
++      ä       {
++      ö       |
++      ü       ~
++      ß       ^]
++}
+++cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++phone         01712092522
++# use this number for isdn-dialin:
++# phone           01712521001
+ max-size      160
+ may-split     True
+ use-call-id   False
+ tap-old               True
+ #
++#----------------------------------------------------------
++#
++
++
++
++#
+ #     D2 (by Mannesmann Mobilfunk)
+ #
+-[D2]
+-modem         standard-d2
++[D2-0162]
++modem         standard
++protocol      ucp
++valid-pid     0162|0049162|49162
++change-pid    0162
++convert               *no-8bit,cv-default
+++cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++# phone               01722278020
++# use this number for isdn-dialin:
++phone           01722278010
++max-size      160
++may-split     True
++use-call-id   True
++can-delay     True
++can-expire    True
++can-rds               True
++check-call-id >1111111111111111<
++check-pager-id        >1111111111111111<
++ucp-extend    True
++#
++#----------------------------------------------------------
++#
++[D2-0172]
++modem         standard
+ protocol      ucp
+ valid-pid     0172|0049172|49172
+ change-pid    0172
+ convert               *no-8bit,cv-default
+ +cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
+-phone         01722278020
++# phone               01722278020
++# use this number for isdn-dialin:
++phone           01722278010
++max-size      160
++may-split     True
++use-call-id   True
++can-delay     True
++can-expire    True
++can-rds               True
++check-call-id >1111111111111111<
++check-pager-id        >1111111111111111<
++ucp-extend    True
++#
++#----------------------------------------------------------
++#
++[D2-0173]
++modem         standard
++protocol      ucp
++valid-pid     0173|0049173|49173|173
++change-pid    0173
++convert               *no-8bit,cv-default
+++cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++# phone               01722278020
++# use this number for isdn-dialin:
++phone           01722278010
+ max-size      160
+ may-split     True
+ use-call-id   True
+@@ -264,10 +396,39 @@
+ check-pager-id        >1111111111111111<
+ ucp-extend    True
+ #
++#----------------------------------------------------------
++#
++[D2-0174]
++modem         standard
++protocol      ucp
++valid-pid     0174|0049174|49174|174
++change-pid    0174
++convert               *no-8bit,cv-default
+++cost         timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++# phone               01722278020
++# use this number for isdn-dialin:
++phone           01722278010
++max-size      160
++may-split     True
++use-call-id   True
++can-delay     True
++can-expire    True
++can-rds               True
++check-call-id >1111111111111111<
++check-pager-id        >1111111111111111<
++ucp-extend    True
++#
++#----------------------------------------------------------
++#
++
++
++
++#
++#
+ #     E+ (by ???)
+ #     !! UNTESTED !!
+ #
+-[E+]
++[E+0177]
+ protocol      tap
+ valid-pid     0177|0049177|49177
+ change-pid    0177
+@@ -278,6 +439,22 @@
+ may-split     True
+ use-call-id   False
+ #
++#----------------------------------------------------------
++#
++[E+0178]
++protocol        tap
++valid-pid       0178|0049178|49178|0178
++#change-pid     0178
++convert         *no-8bit,cv-default
+++cost           timetable=Wk0800-1800=5.7;Wk1800-0800=11.4;Ss=11.4
++phone           01771167
++max-size        160
++may-split       True
++use-call-id     False
++#
++#----------------------------------------------------------
++#
++#
+ #     Telmi, Telmi-* (by Deutsche Funkruf)
+ #     !! ONLY TESTED FOR TELMI-FUN !!
+ #
+@@ -326,6 +503,20 @@
+ phone         016593
+ max-size      80
+ use-call-id   True
++#
++#             Cityruf
++#     !!Used for emessage.de also!!
++#
++[Cityruf]
++protocol       tap
++valid-pid      0168|0164
++change-pid     -
++convert        *no-8bit,cv-default,cv-extend
++phone          016902
++max-size       80
++use-call-id            False
++insert-pager-id        False
++truncate       True
+ 
+ #########################################
+ #     modem section                   #
+@@ -335,10 +526,10 @@
+ #     Locking
+ #
+ #     Older Unix versions
+-lock-prefix   /usr/spool/uucp/LCK..
++#lock-prefix  /usr/spool/uucp/LCK..
+ #     Newer Unix versions
+ #lock-prefix  /var/spool/uucp/LCK..
+-#lock-prefix  /var/lock/LCK..
++lock-prefix   /var/lock/LCK..
+ #     SysV4
+ #lock-prefix  /var/spool/locks/LK.
+ #lock-method  sysv4
+@@ -346,22 +537,38 @@
+ #     Device
+ #
+ #     Typical a symbolic link to the real device
+-device                /dev/modem
++device                /dev/ttyS0
+ #     "normal" call-out device
+ #device               /dev/cua1
+ #     Solaris convention
+ #device               /dev/cua/a
++# use the following device for isdn-dialout:
++#device               /dev/ttyI6
++# use the following device for CAPI
++# syntax: CAPI/<controller>/<MSN>
++#device               CAPI/1/12345
+ 
+ #
++#
+ #     Modem talk
+ #
+-init          \\r !200D ATZ\r <OK ATE0Q0V1\r <OK
+-dial          ATD%L\r <60CONNECT|OK|BUSY|NO\sDIALTONE|NO\sCARRIER
+-reset         ATZ\r <OK
++#init         \\r !200D AT&F2\r <OK ATE0Q0V1M1L1X3\r <OK
++init          \\r !200D AT&F2\r <OK ATV1M1L1X3\r <OK
++
++# use the following init-string for isdn:
++# and change MSN to your MSN (what else...:-))
++#init            \\r !200D ATZ\r <OK AT&E9879356\r <OK
++
++dial          ATDT0%L\r <60CONNECT|OK|BUSY|NO\sDIALTONE|NO\sCARRIER
++reset         ATH\r <OK
+ timeout               10
++
++
+ #     Customizing an existing modem entry
+-[standard-d2] standard
+-local-init    AT\%C2\r <OK
++#[standard-d2] standard
++#local-init   AT\%C2\r <OK
++
++
+ #
+ #     alias section
+ #
diff --git a/app-mobilephone/yaps/yaps-0.96-r1.ebuild b/app-mobilephone/yaps/yaps-0.96-r1.ebuild
new file mode 100644 (file)
index 0000000..6a9fed8
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/yaps/yaps-0.96-r1.ebuild,v 1.1 2005/10/15 07:57:30 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="Yet Another Pager Software (optional with CAPI support)"
+HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/machines/"
+SRC_URI="capi? ( mirror://sourceforge/capi4yaps/${P}.c2.tgz )
+       !capi? ( ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/machines/${P}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="capi lua slang unicode"
+
+RDEPEND="capi? ( net-dialup/capi4k-utils )
+       slang? ( sys-libs/slang )
+       lua? ( dev-lang/lua )"
+DEPEND="${RDEPEND}
+       lua? ( dev-util/pkgconfig )"
+
+use capi && S="${S}.c2"
+
+src_unpack() {
+       unpack ${A}
+
+       # apply patches
+       epatch ${FILESDIR}/${P}-gentoo.patch
+       use capi \
+               && grep 2>/dev/null -q CAPI_LIBRARY_V2 /usr/include/capiutils.h \
+               && epatch ${FILESDIR}/${P}-capiv3.patch
+
+       # if specified, convert all relevant files from latin1 to UTF-8
+       cd ${S}
+       if use unicode; then
+               for i in yaps.doc; do
+                       einfo "Converting '${i}' to UTF-8"
+                       iconv -f latin1 -t utf8 -o "${i}~" "${i}" && mv -f "${i}~" "${i}" || rm -f "${i}~"
+               done
+       fi
+}
+
+src_compile() {
+       local myconf=""
+       use lua && myconf="${myconf} LUA=True"
+       use slang && myconf="${myconf} SLANG=True"
+       emake CFLAGS="$CFLAGS" ${myconf} || die "emake failed"
+}
+
+src_install() {
+       dobin yaps
+       insinto /etc
+       doins yaps.rc
+       keepdir /usr/lib/yaps
+       doman yaps.1
+       dohtml yaps.html
+       dodoc BUGREPORT README yaps.lsm yaps.doc
+       docinto contrib
+       dodoc contrib/{README,m2y.pl,tap.sl}
+}
+
+pkg_postinst() {
+       einfo
+       einfo "Please edit /etc/yaps.rc to suit your needs."
+       einfo
+}