/[gentoo-x86]/net-misc/netifrc/netifrc-9999.ebuild
Gentoo

Diff of /net-misc/netifrc/netifrc-9999.ebuild

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

Revision 1.4 Revision 1.5
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/netifrc/netifrc-9999.ebuild,v 1.4 2013/08/27 17:01:53 axs Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/netifrc/netifrc-9999.ebuild,v 1.5 2013/08/28 16:15:28 robbat2 Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit eutils 7inherit eutils
8 8
30 sed -i "/^DIR/s:/${PN}:/${PF}:" doc/Makefile || die #241342 30 sed -i "/^DIR/s:/${PN}:/${PF}:" doc/Makefile || die #241342
31 31
32 if [[ ${PV} == "9999" ]] ; then 32 if [[ ${PV} == "9999" ]] ; then
33 local ver="git-${EGIT_VERSION:0:6}" 33 local ver="git-${EGIT_VERSION:0:6}"
34 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die 34 sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
35 einfo "Producing ChangeLog from Git history"
36 GIT_DIR="${S}/.git" git log >"${S}"/ChangeLog
35 fi 37 fi
36 38
37 # Allow user patches to be applied without modifying the ebuild 39 # Allow user patches to be applied without modifying the ebuild
38 epatch_user 40 epatch_user
39} 41}
47 emake ${MAKE_ARGS} all 49 emake ${MAKE_ARGS} all
48} 50}
49 51
50src_install() { 52src_install() {
51 emake ${MAKE_ARGS} DESTDIR="${D}" install 53 emake ${MAKE_ARGS} DESTDIR="${D}" install
52 dodoc README 54 dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO ChangeLog
53} 55}
54 56
55pkg_postinst() { 57pkg_postinst() {
56 if [[ ! -e "${EROOT}"/etc/conf.d/net && -z $REPLACING_VERSIONS ]]; then 58 if [[ ! -e "${EROOT}"/etc/conf.d/net && -z $REPLACING_VERSIONS ]]; then
57 elog "The network configuration scripts will use dhcp by" 59 elog "The network configuration scripts will use dhcp by"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20