/[gentoo-x86]/net-misc/ser/ser-0.9.7.ebuild
Gentoo

Diff of /net-misc/ser/ser-0.9.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/Attic/ser-0.9.7.ebuild,v 1.2 2008/05/21 18:59:53 dev-zero Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/ser/Attic/ser-0.9.7.ebuild,v 1.3 2008/06/15 11:04:25 zmedico Exp $
4 4
5inherit eutils flag-o-matic toolchain-funcs multilib 5inherit eutils flag-o-matic toolchain-funcs multilib
6 6
7IUSE="ipv6 mysql radius postgres jabber ldap ssl" 7IUSE="ipv6 mysql radius postgres jabber ldap ssl"
8 8
162 sed -i -e "s:^.B /ser-${PV}AUTHORS:.B /usr/share/doc/${PF}/AUTHORS:" \ 162 sed -i -e "s:^.B /ser-${PV}AUTHORS:.B /usr/share/doc/${PF}/AUTHORS:" \
163 -e "s:^.B /ser:.B /usr/sbin/ser:" \ 163 -e "s:^.B /ser:.B /usr/sbin/ser:" \
164 "${D}"/usr/share/man/*/* || die 164 "${D}"/usr/share/man/*/* || die
165} 165}
166 166
167pkg_preinst() {
168 has_version "${CATEGORY}/${PN}"
169 previous_installed_version=$?
170}
171
167pkg_postinst() { 172pkg_postinst() {
168 if has_version ${CATEGORY}/${PN}; then 173 if [[ $previous_installed_version = 0 ]] ; then
169 einfo "Changing permissions on ${ROOT}etc/ser" 174 einfo "Changing permissions on ${ROOT}etc/ser"
170 175
171 chown -R root:ser "${ROOT}"/etc/ser 176 chown -R root:ser "${ROOT}"/etc/ser
172 chmod 750 "${ROOT}"/etc/ser 177 chmod 750 "${ROOT}"/etc/ser
173 chmod 640 "${ROOT}"/etc/ser/* 178 chmod 640 "${ROOT}"/etc/ser/*

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20