From: Alexander Volkov <alt@vladregion.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] subst in configure script Date: Mon, 18 Jun 2007 12:27:55 +0400 Message-ID: <20070618082753.GC9104@xeon.vladregion.ru> (raw) In-Reply-To: <200706181055.18918.yura@emict.com> [-- Attachment #1: Type: text/plain, Size: 1064 bytes --] On 2007-06-18 10:55:18 +0300, Yuriy Kashirin wrote: YK> On Понедельник 18 июня 2007, Alexander Volkov wrote: YK> $prefix в аргументе subst раскрвается, и этот subst ничего не делает YK> (ищет не то, что вы хотите). YK> Попробуйте так: YK> -%__subst "s|$prefix/share/sams|%webdir|g" configure YK> +%__subst 's|$prefix/share/sams|%webdir|g' configure Вышеуказанный вариант отработал, но ошибка та же. YK> или так: YK> -%__subst "s|$prefix/share/sams|%webdir|g" configure YK> +%__subst "s|\$prefix/share/sams|%webdir|g" configure собака таки не тут порылась... warning: File listed twice: /var/www/html/sams error: Symlink points to BuildRoot: /var/www/html/sams -> /usr/src/tmp/sams-buildroot/usr/share/sams RPM build errors: File listed twice: /var/www/html/sams Symlink points to BuildRoot: /var/www/html/sams -> /usr/src/tmp/sams-buildroot/usr/share/sams Откуда симлинк берется, если в поминках его не нашел.... Раньше в спеке была команда на линкование, но счас я её вычистил... спек прикладываю, мож кто поглазастее :) -- Regards, Alexander [-- Attachment #2: sams.spec --] [-- Type: text/plain, Size: 5735 bytes --] %define webdir /var/www/html Name: sams Version: 20070129 Release: alt4 Summary: SAMS (Squid Account Management System) License: GPL Group: System/Servers Url: http://sams.irc.perm.ru/ Source: %url/%name-%version.tar.gz Source2: %name-README.alt Packager: Alexander Volkov <vaa@altlinux.ru> Summary(ru_RU.KOI8-R): Программное средство для администрирования доступа пользователей к прокси-серверу squid # Automatically added by buildreq on Wed Mar 29 2006 BuildRequires: libMySQL-devel libpcre-devel Requires: %name-config = %version-%release %name-web = %version-%release %name-server = %version-%release BuildRequires: rpm-build-compat >= 0.4 %description SAMS (Squid Account Management System) %description -l ru_RU.KOI8-R Программное средство для администрирования доступа пользователей к прокси-серверу squid # -- Config -- %package config Summary: Config for %name Summary(ru_RU.KOI8-R): Конфигурационный файл для %name License: GPL Group: System/Servers %description config Config for %name %description config -l ru_RU.KOI8-R Конфигурационный файл для %name # -- Server -- %package server Summary: %name daemon Summary(ru_RU.KOI8-R): Сервер %name License: GPL Group: System/Servers Requires: %name-config = %version-%release Requires: MySQL-client %description server Server %name %description server -l ru_RU.KOI8-R Сервер %name # -- Web interface-- %package web Summary: Handle the adminstration of %name over the web Summary(ru_RU.KOI8-R): Управление %name через web License: GPL Group: System/Servers Requires: %name-config = %version-%release Requires: php-mysql %description web %name is a WEB-based interface and tool to manage users of SQUID proxy - manage users access to SQUID - proxy with NTLM, NCSA authorization or IP address - manage prohibition of users to access to URL - manage to rewrite requested URL to graphical resources (banners, counters) - save and build reports of users statistic - switch of users access to SQUID proxy if his traffic quota is off - manage a delay pools for users groups %description web -l ru_RU.KOI8-R %name это WEB интерфейс и инструменты для администрирования пользователей к прокси-серверу squid - Администрирование системы через web интерфейс - Ограничение объема трафика пользователей на месяц - Автоматическое отключение пользователей, превысивших лимит. - Ведение списков запрещенных для доступа пользователей ресурсов интернет. - Настройка доступа пользователей через механизм шаблонов. Шаблоны позволяют: + назначить списки запрещенных сайтов для пользователей данного шаблона + определить объем трафика пользователя шаблона по умолчанию + назначить скорость доступа к интернет для пользователей шаблона (delay_pools) + ограничение доступа пользователей по времени и дням недели - Разбиение пользователей на группы для удобства администрирования системы - Формирование отчетов по трафику пользователей за любой отрезок времени: + Полученный пользователями трафик + Посещенные пользователями сайты + Полученные пользователями файлы - Поддержка видов авторизации SQUID: + NTLM авторизация в домене Windows + NCSA авторизация + доступ по ip адресу - Поддержка использования редиректоров SQUID: + Rejik + SquidGuard - Категории пользователей SAMS: + пользователи с правами администрирования SAMS + пользователь Аудитор, для контроля трафика пользователей, без возможности администрирования системы + пользователи сети с расширенными правами, получают расширенный доступ к web интерфейсу, для контроля трафика пользователей своей группы + пользователи сети получают доступ к web интерфейсу для контроля своего трафика - Посылку сообщений администратору при отключении пользователей при превышении трафика - Для хранения данных используется СУБД MySQL %prep %setup -q -n %name %__cp %SOURCE2 README.alt find %_builddir/%name -type d -name CVS -print0 | xargs -r0 rm -fr rm -f php/lang/koi8r-2-win1251.php find %_builddir/%name -type f -print0 | xargs -r0 subst "s|LIBS = -I. \$(MYSQLLIBS) \$(PCRELIBS) \$(SUNLIB)|LIBS = -I. \$(MYSQLLIBS) \$(PCRELIBS) \$(SUNLIB) -lm|g" %__subst 's|$prefix/share/sams|%webdir|g' configure %build %configure \ --with-configfile=%_sysconfdir/sams.conf \ --with-rcd-locations=%_initdir \ --with-httpd-locations=%webdir %make_build %install %__mkdir_p %buildroot%_bindir %__mkdir_p %buildroot%_datadir/%name %__mkdir_p %buildroot%_initdir %__mkdir_p %buildroot%webdir %makeinstall \ RCDPATH=%buildroot%_initdir \ HTTPDPATH=%buildroot%webdir %__subst "s|/usr/local/rejik|/usr/share/rejik|g" %buildroot%_sysconfdir/%name.conf %__subst "s|SAMSPATH=/usr/local|SAMSPATH=/usr|g" %buildroot%_sysconfdir/%name.conf %__subst "s|daemon|start_daemon|g" %buildroot%_initdir/samsd %__subst "s|killproc|stop_daemon|g" %buildroot%_initdir/samsd %post server %post_service samsd %preun server %preun_service samsd %post web ##%post_service httpd %preun web %__rm -f %_var/www/html/sams %files %files config %doc CHANGELOG COPYING INSTALL* README* mysql etc/sams.conf.default %config(noreplace) %_sysconfdir/%name.conf %files server %_bindir/* %config %_sysconfdir/rc.d/* %files web %webdir/sams %dir %attr(2770,root,apache) %webdir/sams %dir %attr(2777,root,apache) %webdir/sams/data %changelog * Sun Jun 17 2007 Alexander Volkov <vaa@altlinux.ru> 20070129-alt3 - moved web content from /usr to /var/www/html * Fri Apr 06 2007 Alexander Volkov <vaa@altlinux.ru> 20070129-alt2 - minor changes, README.alt added * Fri Mar 09 2007 Alexander Volkov <vaa@altlinux.ru> 20070129-alt1 - New release, spec fixes * Wed Mar 29 2006 Slava Dubrovskiy <dubrsl@altlinux.ru> 20051107-alt0 - initial build 4 Sisyphus
next prev parent reply other threads:[~2007-06-18 8:27 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-18 7:30 Alexander Volkov 2007-06-18 7:55 ` Yuriy Kashirin 2007-06-18 8:27 ` Alexander Volkov [this message] 2007-06-18 9:50 ` Yuriy Kashirin 2007-06-18 11:19 ` Alexander Volkov 2007-06-18 12:33 ` Alexander Volkov 2007-06-18 12:54 ` [sisyphus] sams Alexander Volkov 2007-06-18 13:04 ` Alexander Volkov 2007-06-18 13:11 ` Slava Semushin 2007-06-18 13:13 ` Alexander Volkov 2007-06-18 13:16 ` Slava Semushin 2007-06-18 13:25 ` Alexander Volkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070618082753.GC9104@xeon.vladregion.ru \ --to=alt@vladregion.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git