| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  | # Copyright 2016 Julian Ospald <hasufell@posteo.de> | 
					
						
							|  |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Based in part upon 'netifrc-0.3.1.ebuild' from Gentoo, which is: | 
					
						
							|  |  |  | #     Copyright 1999-2015 Gentoo Foundation | 
					
						
							|  |  |  | #     Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-31 23:59:14 +00:00
										 |  |  | require udev-rules github [ user=gentoo tag=${PV} ] | 
					
						
							| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SUMMARY="Gentoo Network Interface Management Scripts" | 
					
						
							|  |  |  | LICENCES="BSD-2" | 
					
						
							|  |  |  | SLOT="0" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							|  |  |  |     build: | 
					
						
							|  |  |  |         virtual/pkg-config | 
					
						
							| 
									
										
										
										
											2016-02-28 23:05:15 +00:00
										 |  |  |     run: | 
					
						
							|  |  |  |         sys-apps/gentoo-functions | 
					
						
							| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_compile() { | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     MAKE_ARGS="
 | 
					
						
							|  |  |  |         UDEVDIR=${UDEVRULESDIR} | 
					
						
							|  |  |  |         LIBEXECDIR=/usr/$(exhost --target)/libexec/${PN} | 
					
						
							| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  |         PF=${PNVR}"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     emake ${MAKE_ARGS} all | 
					
						
							| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_install() { | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     emake ${MAKE_ARGS} DESTDIR="${IMAGE}" install | 
					
						
							| 
									
										
										
										
											2018-10-31 23:59:14 +00:00
										 |  |  |     dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO | 
					
						
							| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | pkg_postinst() { | 
					
						
							| 
									
										
										
										
											2016-02-17 01:53:28 +00:00
										 |  |  |     if [[ ! -e "${ROOT}"/etc/conf.d/net ]]; then | 
					
						
							|  |  |  |         elog "The network configuration scripts will use dhcp by" | 
					
						
							|  |  |  |         elog "default to set up your interfaces." | 
					
						
							|  |  |  |         elog "If you need to set up something more complete, see" | 
					
						
							|  |  |  |         elog "${ROOT}/usr/share/doc/${PNVR}/README" | 
					
						
							|  |  |  |     fi | 
					
						
							| 
									
										
										
										
											2016-02-15 01:05:14 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2016-02-28 23:05:15 +00:00
										 |  |  | 
 |