ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] Ошибка при сборке RPM
@ 2002-04-05 21:03 Alexei Takaseev
  2002-04-05 23:41 ` Grigory Batalov
  0 siblings, 1 reply; 2+ messages in thread
From: Alexei Takaseev @ 2002-04-05 21:03 UTC (permalink / raw)
  To: mandrake-russian

[-- Attachment #1: Type: TEXT/PLAIN, Size: 623 bytes --]

Приветствую!

Вот тут решил собрать radius-cistron в rpm. Споткнулся об такую
ошибку:
...
...
install -m 644 ../doc/radwatch.8
/var/tmp/radiusd-cistron-buildroot/usr/man/man8test -n "" || rm
-f /var/tmp/radiusd-cistron-buildroot/usr/man/man8/builddbm.8rad
install: cannot create regular file `/etc/pam.d/radius':
Permission denied
make: *** [install] Error 1
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.7719 (%install)


Ошибки сборки пакетов:
    Неверный код возврата из /var/tmp/rpm-tmp.7719 (%install)
$

Где этой сволочи прописать, чтобы она в /etc/pam.d не лезла, уже
ума не приложу. За основу взял spec от RH.

[-- Attachment #2: Type: TEXT/PLAIN, Size: 4686 bytes --]

Summary: Cistron RADIUS daemon (with PAM) 
Summary(pt_BR): Servidor RADIUS com muitas funcoes.
Name: radiusd-cistron
Version: 1.6.6
Release: 1
Source: radiusd-cistron-1.6.6.tar.gz
Source1: rc.radiusd-redhat
Source2: radiusd-logrotate
Source3: radiusd.pamd

URL: http://www.radius.cistron.nl/
Copyright: GPL
Group: Networking/Daemons
BuildRoot: /var/tmp/%{name}-buildroot

%description
RADIUS server with a lot of functions. Short overview: 

- PAM support compiled in
- Supports access based on huntgroups
- Multiple DEFAULT entries in users file
- All users file entries can optionally "fall through"
- Caches all config files in-memory
- Keeps a list of logged in users (radutmp file)
- "radwho" program can be installed as "fingerd"
- Logs both UNIX "wtmp" file format and RADIUS detail logfiles
- Supports Simultaneous-Use = X parameter. Yes, this means
  that you can now prevent double logins!

%description -l pt_BR
Servidor RADIUS com muitas funГУes. VisЦo geral:

- Suporta acesso baseado em huntgroups
- Multiplas entradas DEFAULT no arquivo de usuarios
- Faz cache de todos os arquivos de configuracЦo em memoria
- Mantem uma lista dos usuarios conectados (arquivo radutmp)
- O programa radwho pode ser instalado como fingerd
- Registra tanto no formato UNIX wtmp quanto no RADIUS detail
- Suporta o parametro Simultaneous-Use = X. Sim, isto significa
  que vocЙ pode evitar logins duplos!, inclusive com o Cyclades PathRas

%prep 
%setup
cd raddb
for f in clients users naslist huntgroups ; do cp $f $f-dist ; done
cd ..

%build
cd src
make PAM=-DPAM PAMLIB="-lpam -ldl" CFLAGS="-Wall ${RPM_OPT_FLAGS}"
cd ..

%install
# prepare $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT/{,etc/{,raddb,logrotate.d,pam.d,rc.d/{,init.d,rc{0,1,2,3,4,5,6}.d}},usr/{,bin,sbin,man/{,man{1,5,8}}},var/{,log/{,radacct}}}

# make install
cd src
make install BINDIR=${RPM_BUILD_ROOT}/usr/bin SBINDIR=${RPM_BUILD_ROOT}/usr/sbin RADIUS_DIR=${RPM_BUILD_ROOT}/etc/raddb PAM_DIR=${RPM_BUILD_ROOT}/etc/pam.d MANDIR=${RPM_BUILD_ROOT}/usr/man
cd ..

# radwatch
install -m 755 scripts/radwatch ${RPM_BUILD_ROOT}/usr/sbin/
perl -pi -e 's#/usr/local/sbin#/usr/sbin#' ${RPM_BUILD_ROOT}/usr/sbin/radwatch

# other files
#cd redhat
install -m 555 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/rc.d/init.d/radiusd
install -m 644 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/logrotate.d/radiusd
install -m 644 %SOURCE3 $RPM_BUILD_ROOT%_sysconfdir/pam.d/radiusd
#cd ..

# rc.d files
for i in 3 4 5;  do
	ln -sf ../init.d/radiusd ${RPM_BUILD_ROOT}/etc/rc.d/rc$i.d/S88radiusd
done
for i in 0 1 2 6; do
	ln -sf ../init.d/radiusd ${RPM_BUILD_ROOT}/etc/rc.d/rc$i.d/K12radiusd
done

for i in radutmp radwtmp radius.log; do
	touch ${RPM_BUILD_ROOT}/var/log/$i
	mkdir -p ${RPM_BUILD_ROOT}/var/log/radacct
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)

%doc doc/ChangeLog doc/README doc/README.pam doc/README.proxy 
%doc doc/README.usersfile doc/README.simul doc/INSTALL.OLD 
%doc doc/Makefile.README doc/README.cisco doc/README.radrelay
%doc COPYRIGHT.Cistron COPYRIGHT.Livingston

/usr/bin/*
/usr/sbin/*
/usr/man/man1/*
/usr/man/man5/*
/usr/man/man8/*
/var/log/radutmp
/var/log/radwtmp
/var/log/radius.log
%dir /var/log/radacct/

%dir %_sysconfdir/raddb/
%config(noreplace) %_sysconfdir/raddb/*
%config(noreplace) %_sysconfdir/logrotate.d/radiusd
%config(noreplace) %_sysconfdir/pam.d/radiusd
%config(noreplace) %_initdir/radiusd
%config(missingok) %_sysconfdir/rc.d/rc0.d/K12radiusd
%config(missingok) %_sysconfdir/rc.d/rc1.d/K12radiusd
%config(missingok) %_sysconfdir/rc.d/rc2.d/K12radiusd
%config(missingok) %_sysconfdir/rc.d/rc3.d/S88radiusd
%config(missingok) %_sysconfdir/rc.d/rc4.d/S88radiusd
%config(missingok) %_sysconfdir/rc.d/rc5.d/S88radiusd
%config(missingok) %_sysconfdir/rc.d/rc6.d/K12radiusd

%changelog
* Fri Dec 29 2000 Carl Soderstrom <chrome@real-time.com>
- updated to version 1.6.4
- can be built as non-root user, which doesn't risk overwriting system files when building

* Sat Nov 21 1998 Tim Hockin <thockin@ais.net>
- Based on work by Christopher McCrory <chrismcc@netus.com>
- Build with PAM
- Included pam.d/radius
- Fixed some small errors in this spec
- Changed to build to BuildRoot
- Changed Release to "beta11" from "1"
- Included users, naslist, huntgroups, clients files, not just -dist

* Tue Oct 27 1998 Mauricio Mello de Andrade <mandrade@mma.com.br>
- Corrected the script to Start/Stop the Radius under RH5.x
- Included the script to Rotate Radius Logs under RedHat
- Checkrad Utility now works fine with Cyclades PathRas


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [mdk-re] Ошибка при сборке RPM
  2002-04-05 21:03 [mdk-re] Ошибка при сборке RPM Alexei Takaseev
@ 2002-04-05 23:41 ` Grigory Batalov
  0 siblings, 0 replies; 2+ messages in thread
From: Grigory Batalov @ 2002-04-05 23:41 UTC (permalink / raw)
  To: mandrake-russian

On Sat, 6 Apr 2002 02:02:01 +0900 (IRKST)
"Alexei Takaseev" <taf@utaf.ilim.ru> wrote:

> Вот тут решил собрать radius-cistron в rpm. Споткнулся об такую
> ошибку:
> ...
> ...
> install -m 644 ../doc/radwatch.8
> /var/tmp/radiusd-cistron-buildroot/usr/man/man8test -n "" || rm
> -f /var/tmp/radiusd-cistron-buildroot/usr/man/man8/builddbm.8rad
> install: cannot create regular file `/etc/pam.d/radius':
> Permission denied
> make: *** [install] Error 1
> ошибка: Неверный код возврата из /var/tmp/rpm-tmp.7719 (%install)
> 
> 
> Ошибки сборки пакетов:
>     Неверный код возврата из /var/tmp/rpm-tmp.7719 (%install)
> $
> 
> Где этой сволочи прописать, чтобы она в /etc/pam.d не лезла, уже
> ума не приложу. За основу взял spec от RH.

   Какой-то сложный спек. А в самой программе нет метода
 типа ./configure; make; make install ?
   Если есть, я бы посмотрел ./configure --help на предмет
 --prefix=...

-- 
 Grigory Batalov.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-05 23:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 21:03 [mdk-re] Ошибка при сборке RPM Alexei Takaseev
2002-04-05 23:41 ` Grigory Batalov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git