📄 rpm.in
字号:
# fairly minimal RPM spec file, does only packaging# Based on work by Paul Lahaie of Steamballoon.# This file is touched up by sed (in the Makefile) before it is actually used.Summary: Kernel with OpenswanName: openswanVersion: @IPSECVERSION@_@KERNELVERSION@Release: 0Copyright: GPLSource: openswan-%{version}.tar.gzGroup: System Environment/DaemonsBuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root%define __spec_install_post /usr/lib/rpm/brp-compress || :%define KernelVer @KERNELVERSIONORIG@Requires: ipsec-userland ipsec-kernel%package userlandSummary: Kernel with OpenswanGroup: System Environment/DaemonsProvides: ipsec-userlandRequires: ipsec-kernel%package moduleSummary: Openswan kernel moduleGroup: System Environment/KernelProvides: ipsec-kernel# do not make the dependancy circular for now.#Requires: ipsec-userland%description userlandThis package contains the daemons and userland tools for setting upOpenswan on an Openswan enabled kernel.%description moduleThis package contains only the ipsec module for the RedHat series of kernels.%descriptionA dummy package that installs userland and kernel pieces.%prep%build%install%cleanrm -rf ${RPM_BUILD_ROOT}%files userland%defattr(-,root,root)@PUBDIR@/ipsec@FINALBINDIR@/*@FINALLIBDIR@/*/etc/rc.d/init.d/ipsec%attr(0644,root,root) %config(noreplace) @FINALCONFDIR@/ipsec.conf%attr(0644,root,root) %config(noreplace) @FINALCONFDDIR@/policies/clear%attr(0644,root,root) %config(noreplace) @FINALCONFDDIR@/policies/private%attr(0644,root,root) %config(noreplace) @FINALCONFDDIR@/policies/block%attr(0644,root,root) %config(noreplace) @FINALCONFDDIR@/policies/private-or-clear%attr(0644,root,root) %config(noreplace) @FINALCONFDDIR@/policies/clear-or-private%attr(0644,root,root) %config(noreplace) @FINALCONFDDIR@/examples/no_oe.conf%doc @MANTREE@/man3/*%doc @MANTREE@/man5/*%doc @MANTREE@/man8/*%doc @FINALEXAMPLECONFDIR@/*%files module%defattr (-,root,root)/lib/modules/%{KernelVer}/kernel/net/ipsec%pre userlandif [ -f /etc/ipsec.conf ]then cp -f --backup=t /etc/ipsec.conf /etc/ipsec.conf.prerpm > /dev/null 2> /dev/null if [ -z "`grep '^version[[:space:]]*2' /etc/ipsec.conf`" ] then echo "Version 1.x config files aren't compatible with 2.x series Openswan." echo "See doc/upgrading.html for how to update your existing config to work with this version of FreeS/WAN." fifi%preun userlandsh /etc/rc.d/init.d/ipsec stop || exit 0%postun module# This is a kludge to handle the fact that ipsec.o is not deleted# on plain jane RPM uninstall.for i in /lib/modules/*@KERNELVERSIONORIG@* do mv -f --backup=t "$i"/kernel/net/ipsec/ipsec.o "$i"/kernel/net/ipsec/ipsec.o.rpmbak > /dev/null 2> /dev/null done || exit 0%post module# Same RPM uninstall kludge.for i in /lib/modules/*@KERNELVERSIONORIG@* do mv -f --backup=t "$i"/kernel/net/ipsec/ipsec.o "$i"/kernel/net/ipsec/ipsec.o.rpmbak > /dev/null 2> /dev/null doneexit 0%post userlandchkconfig --add ipsec%changelog## $Log: rpm.in,v $# Revision 1.9 2004/04/11 22:30:43 ken# Pull in Free-> Openswan from PRE2_1_0 branch## Revision 1.7 2003/11/05 05:55:51 sam# Fix for PR#272: Don't overwrite existing config files.# Warn if we leave an incompatible config file.## Revision 1.6 2003/01/30 23:31:34 sam## dhr contributed changes. still may need modification, but I'm committing# before I leave.## Revision 1.5 2003/01/14 22:03:44 sam# include policy files in RPM.## Revision 1.4 2003/01/04 07:38:11 build# *** empty log message ***## Revision 1.3 2002/12/12 05:45:41 sam# new template file from 1.99 pulled up in part## Revision 1.2.2.1 2002/12/07 23:47:22 sam# merging in a few 1.99 rpm.in changes.## Revision 1.2 2002/10/30 06:54:15 sam# Updates to take into account lib vs libexec - so we don't miss files.## Revision 1.1 2002/10/06 08:35:54 sam# RPM template
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -