blob: 344017c574bd13ea3392dc93469cf97ca922371c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/linpopup/linpopup-1.2.0.ebuild,v 1.4 2004/05/09 11:30:58 sejo Exp $
MY_P=LinPopUp-${PV}
DESCRIPTION="LinPopUp, for sending/receiving WinPopup messages via Samba"
HOMEPAGE="http://www.littleigloo.org/"
SRC_URI="http://www.chez.com/littleigloo/files/${MY_P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=net-fs/samba-2.2.7
=x11-libs/gtk+-1.2*"
S=${WORKDIR}/${MY_P}/src
src_compile() {
emake DESTDIR=/usr DOC_DIR=/usr/share/doc/${P} SHARE_DIR=/usr/share/${P} || die
}
src_install() {
dobin LinPopUp
doman ../LinPopUp.1
dodoc ../AUTHORS ../BUGS ../COPYING ../ChangeLog ../INSTALL ../MANUAL ../NEWS ../README ../TODO ../THANKS
insinto /usr/share/${P}
doins ../extra/gtkrc
insinto /usr/share/${P}/pixmaps
doins ../pixmaps/little_igloo.xpm
# Install messages.dat if not already present
if [ ! -f /var/lib/linpopup/messages.dat ]
then
dodir /var/lib/linpopup
touch messages.dat # create (empty) file locally, then install
insinto /var/lib/linpopup
doins messages.dat
fperms 0666 /var/lib/linpopup/messages.dat
fi
}
pkg_postinst() {
echo
einfo "To be able to receive messages that are sent to you, you will need to"
einfo "edit your /etc/samba/smb.conf file."
einfo ""
einfo "Add this line to the [global settings] section:"
einfo ""
einfo " message command = /usr/bin/LinPopUp \"%f\" \"%m\" %s; rm %s"
einfo ""
einfo "PLEASE NOTE that \"%f\" is not the same thing as %f , '%f' or %f"
einfo "and take care to enter \"%f\" \"%m\" %s exactly as shown above."
einfo
einfo "For more information, please refer to the documentation, found in"
einfo "/usr/share/doc/${P}/INSTALL"
echo
}
|