Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 84708
Collapse All | Expand All

(-)mailman-2.1.5-r4.ebuild (-19 / +11 lines)
Lines 83-110 Link Here
83
	dodoc contrib/virtusertable contrib/mailman.mc
83
	dodoc contrib/virtusertable contrib/mailman.mc
84
84
85
	cp build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
85
	cp build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
86
		contrib/mm-handler* ${D}/usr/local/mailman/bin
86
		contrib/mm-handler* ${ID}/bin
87
87
88
	# Save the old config into the new package as CONFIG_PROTECT
88
	# Save the old config into the new package as CONFIG_PROTECT
89
	# doesn't work for this package.
89
	# doesn't work for this package.
90
	if [ -f ${ROOT}/var/mailman/Mailman/mm_cfg.py ]; then
90
	for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \
91
		cp ${ROOT}/var/mailman/Mailman/mm_cfg.py \
91
		${ROOT}/usr/local/mailman ${INSTALLDIR} 
92
			${D}/usr/local/mailman/Mailman/mm_cfg.py
92
	do
93
		einfo "Your old config has been saved as mm_cfg.py"
93
		if [ -f ${i}/Mailman/mm_cfg.py ]; then
94
		einfo "A new config has been installed as mm_cfg.dist"
94
			cp ${i}/Mailman/mm_cfg.py \
95
	fi
95
				${ID}/Mailman/mm_cfg.py
96
	if [ -f ${ROOT}/home/mailman/Mailman/mm_cfg.py ]; then
96
			einfo "Your old config has been saved as mm_cfg.py"
97
		cp ${ROOT}/home/mailman/Mailman/mm_cfg.py \
97
			einfo "A new config has been installed as mm_cfg.dist"
98
			${D}/usr/local/mailman/Mailman/mm_cfg.py
98
		fi
99
		einfo "Your old config has been saved as mm_cfg.py"
99
	done
100
		einfo "A new config has been installed as mm_cfg.py.dist"
101
	fi
102
	if [ -f ${ROOT}/usr/local/mailman/Mailman/mm_cfg.py ]; then
103
		cp ${ROOT}/usr/local/mailman/Mailman/mm_cfg.py \
104
			${D}/usr/local/mailman/Mailman/mm_cfg.py
105
		einfo "Your old config has been saved as mm_cfg.py"
106
		einfo "A new config has been installed as mm_cfg.py.dist"
107
	fi
108
100
109
	exeinto /etc/init.d
101
	exeinto /etc/init.d
110
	newexe ${FILESDIR}/mailman.rc mailman
102
	newexe ${FILESDIR}/mailman.rc mailman

Return to bug 84708