### GRSEC Eclass IE for the Tinfoil hat set. ### currently a template..... in WIP stages. (work in progress....) ### 1 Require sabayon sources , clone sabayon sources to {PV} sabayon-spike--{pv} ### inject wifi compat sabayon sources in new directory. {pv} ## Enjoy injection of other WIFI-Pentesting.... ### ATM I'm excedding my "Paygrade" on skills but dare, know, grow... ## http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch ## http://patches.aircrack-ng.org/channel-negative-one-maxim.patch ## patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch, patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch if ! use injection ; then UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} \ 4002_mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch \ 4004_zd1211rw-inject+dbi-fix-3.7.4.patch \ 4005_ipw2200-inject.3.4.6.patch" fi #use openfile_log && UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/openfile_log-36.patch" UNIPATCH_EXCLUDE="${UNIPATCH_EXCLUDE} 4500-new-dect-stack.patch" } ###### Good artist copy Great artist steal (why not reuse code :-) #### inserted Eclass example below..... # Copyright 2011-2014 Andrey Ovcharov # Distributed under the terms of the GNU General Public License v3 # $Header: $ # @ECLASS: exfat.eclass # This file is part of sys-kernel/geek-sources project. # @MAINTAINER: # Andrey Ovcharov # @AUTHOR: # Original author: Andrey Ovcharov (20 Sep 2013) # @LICENSE: http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3 # @BLURB: Eclass for building kernel with exfat patchset. # @DESCRIPTION: # This eclass provides functionality and default ebuild variables for building # kernel with exfat patches easily. # The latest version of this software can be obtained here: # https://github.com/init6/init_6/blob/master/eclass/exfat.eclass # Bugs: https://github.com/init6/init_6/issues # Wiki: https://github.com/init6/init_6/wiki/geek-sources case ${EAPI} in 5) : ;; *) die "exfat.eclass: unsupported EAPI=${EAPI:-0}" ;; esac if [[ ${___ECLASS_ONCE_EXFAT} != "recur -_+^+_- spank" ]]; then ___ECLASS_ONCE_EXFAT="recur -_+^+_- spank" inherit patch utils vars EXPORT_FUNCTIONS src_unpack src_prepare pkg_postinst # @FUNCTION: init_variables # @INTERNAL # @DESCRIPTION: # Internal function initializing all variables. # We define it in function scope so user can define # all the variables before and after inherit. exfat_init_variables() { debug-print-function ${FUNCNAME} "$@" : ${EXFAT_VER:=${EXFAT_VER:-"${KMV}"}} # Patchset version : ${EXFAT_SRC:=${EXFAT_SRC:-"https://github.com/damentz/zen-kernel/compare/torvalds:v${EXFAT_VER/KMV/$KMV}...${EXFAT_VER/KMV/$KMV}/exfat.diff"}} # Patchset sources url : ${EXFAT_URL:=${EXFAT_URL:-"http://opensource.samsung.com/reception/receptionSub.do?method=search&searchValue=exfat"}} # Patchset url : ${EXFAT_INF:=${EXFAT_INF:-"${YELLOW}Samsung’s exFAT fs Linux driver version ${GREEN}${EXFAT_VER}${YELLOW} from ${GREEN}${EXFAT_URL}${NORMAL}"}} debug-print "${FUNCNAME}: EXFAT_VER=${EXFAT_VER}" debug-print "${FUNCNAME}: EXFAT_SRC=${EXFAT_SRC}" debug-print "${FUNCNAME}: EXFAT_URL=${EXFAT_URL}" debug-print "${FUNCNAME}: EXFAT_INF=${EXFAT_INF}" } exfat_init_variables HOMEPAGE="${HOMEPAGE} ${EXFAT_URL}" # @FUNCTION: src_unpack # @USAGE: # @DESCRIPTION: Extract source packages and do any necessary patching or fixes. exfat_src_unpack() { debug-print-function ${FUNCNAME} "$@" local CSD="${GEEK_STORE_DIR}/exfat" local CWD="${T}/exfat" local CTD="${T}/exfat"$$ shift test -d "${CWD}" >/dev/null 2>&1 && cd "${CWD}" || mkdir -p "${CWD}"; cd "${CWD}" dest="${CWD}"/exfat-"${PV}"-`date +"%Y%m%d"`.patch wget "${EXFAT_SRC}" -O "${dest}" > /dev/null 2>&1 cd "${CWD}" || die "${RED}cd ${CWD} failed${NORMAL}" ls -1 "${CWD}" | grep ".patch" > "${CWD}"/patch_list } # @FUNCTION: src_prepare # @USAGE: # @DESCRIPTION: Prepare source packages and do any necessary patching or fixes. exfat_src_prepare() { debug-print-function ${FUNCNAME} "$@" ApplyPatch "${T}/exfat/patch_list" "${EXFAT_INF}" move "${T}/exfat" "${WORKDIR}/linux-${KV_FULL}-patches/exfat" ApplyUserPatch "exfat" } # @FUNCTION: pkg_postinst # @USAGE: # @DESCRIPTION: Called after image is installed to ${ROOT} exfat_pkg_postinst() { debug-print-function ${FUNCNAME} "$@" einfo "${EXFAT_INF}" } fi