lisa.spec

Grzegorz Konopko kolodko1 w wp.pl
Wto, 4 Maj 2004, 11:15:57 CEST


Uaktualnielem lise do najnowszej, ostatnia na AC chyba nie chciala sie 
budowac. nie pamiętam juz dlaczego.
Dodalem nowy domyślny konfig.
Usunąłem patch acam bo nie pasował od tej wersji, pewnie potem i tak będzie go 
trzeba dodać bo nie na wszystkich architektorach sie zbuduje.





-------------- następna część ---------
# $Revision: 1.10 $, $Date: 2003/05/28 12:59:37 $
Summary:	The LAN Information Server
Summary(pl):	Serwer informacji o LANie
Name:		lisa
Version:	0.2.2
Release:	1	
License:	GPL
Group:		Daemons
Source0:	http://lisa-home.sourceforge.net/src/lisa-%{version}.tar.bz2
# Source0-md5:	cba116a4880f77205e0813d93bf14310	
Source1:	%{name}.init
Source2:	%{name}.sysconfig
Source3:	%{name}.default_config
Patch0:		%{name}-acam.patch
Patch1:		%{name}-net_auto_conf.patch
URL:		http://lisa-home.sourceforge.net/
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
Provides:	lisa
Obsoletes:	kdenetwork-lanbrowser
Requires(post,preun):/sbin/chkconfig
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
LISa is a small daemon which is intended to run on end user systems. It
provides something like a "network neighbourhood", but only relying on
the TCP/IP protocol stack, no smb or whatever.

%description -l pl
LISA jest małym daemonem przeznaczonym do działania na komputerach
użytkowników. Dostarcza czegoś w rodzaju ,,Otoczenia Sieciowego'' ale
bazując jedynie na protokole TCP/IP a nie na SMB.

%prep
%setup -q
#%%patch0 -p1
%patch1 -p1

%build
rm -f missing
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir}}

install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lisa
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/lisa
install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/lisarc

%{__make} install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/chkconfig --add lisa
if [ -r /var/lock/subsys/lisa ]; then
	/etc/rc.d/init.d/lisa restart >&2
else
	echo "Run \"/etc/rc.d/init.d/lisa start\" to start Lisa daemon."
fi

%preun
if [ "$1" = "0" ]; then
	if [ -r /var/lock/subsys/lisa ]; then
		/etc/rc.d/init.d/lisa stop >&2
	fi
	/sbin/chkconfig --del lisa
fi

%files
%defattr(644,root,root,755)
%doc README AUTHORS 
%attr(755,root,root) %{_bindir}/*
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lisarc
%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/lisa
%attr(754,root,root) /etc/rc.d/init.d/lisa

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log: lisa.spec,v $
Revision 1.10  2003/05/28 12:59:37  malekith
- massive attack: source-md5

Revision 1.9  2003/05/25 05:50:14  misi3k
- massive attack s/pld.org.pl/pld-linux.org/

Revision 1.8  2002/12/05 23:05:29  ankry
- s/PreReq/Requires(post,preun)/

Revision 1.7  2002/12/05 22:46:14  ankry
- Obsoletes: kdenetwork-lisa
- removed improper %%{_sysconfdir} usage
- release 3

Revision 1.6  2002/10/09 13:14:39  kloczek
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc

Revision 1.5  2002/09/23 09:52:03  mkochano
- Release 2.
- s/%postun/%preun/.

Revision 1.4  2002/09/21 13:12:15  mkochano
- Release 1.3.
- Two new patches (net_auto_conf and default_config).
Not tested very well... :/

Revision 1.3  2002/08/17 18:23:00  kloczek
- more macros and BuildRequires rules.

Revision 1.2  2002/06/02 12:27:44  mkochano
- Release 1.
- Patched AC/AM.

Revision 1.1  2002/06/01 21:52:57  mkochano
- Based on template.
- Not finished. I can't fix ac.
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: lisa-net_auto_conf.patch
Type: text/x-diff
Size: 7239 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20040626/4b724414/lisa-net_auto_conf.bin
-------------- następna część ---------
#For more information about config see: http://lisa-home.sourceforge.net/config.html

SearchUsingNmblookup = 1	#also try nmblookup (require samba-client)
DeliverUnnamedHosts = 0		#don't publish hosts without name
FirstWait = 5			#in hundredth seconds
SecondWait = -1			#ping a second time in hundredth seconds (-1 is disable)
MaxPingsAtOnce = 256		#send up to 256 ICMP echo requests at once
UpdatePeriod = 300		#this is the interval in seconds after which LISa will update its list of running hosts

#	PingAddresses
# Most important entry, example:
# network address/network mask: 192.168.100.0/255.255.255.0
# range of following IP adresses: 192.168.100.10-192.168.199.19 or 192-192.169-171.100-199.0-9
#	PingAddresses =  192.168.1.0-192.168.1.255
PingAddresses =  auto 

# This entry contains exactly one network address/subnet mask. 
# To this network broadcasts will be sent. 
# Usually this should be your own network address/subnetmask.
#	BroadcastNetwork = 192.168.1.0/255.255.255.0
BroadcastNetwork = auto


#	AllowedAddresses
# This entry contains exactly one network address/subnet mask. 
# To this network broadcasts will be sent. 
# Usually this should be your own network address/subnetmask.
#	AllowedAddresses = 192.168.1.0/255.255.255.0
AllowedAddresses = auto

#	PingNames 
# Additionally specify hosts to ping using their names.
# It is also valid to leave this entry empty.
#	PingNames = someHost;someOtherHost
PingNames = 
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: lisa.spec.diff
Type: text/x-diff
Size: 1807 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20040626/4b724414/lisa.spec.bin


Więcej informacji o liście dyskusyjnej pld-devel-pl