Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/env bash
- ### /etc/portage/bashrc_do-git-ftp.inc
- ### /etc/portage/bashrc add source bashrc_do-git-ftp.inc
- #### https://github.com/spreequalle/gentoo-binhost , some credits , on RPI4 devices sometimes she works , offten she wont..
- ## to my fork https://github.com/necrose99/gentoo-binhost GH also has a 50 meg file limit ie ghc or larger tools nuts...
- ### so needed a fix to a public binhost on www/ftp or shared webhosting thats dope....
- if [[ ${EBUILD_PHASE} == 'postinst' ]]; then
- # FIXME come up with a more sophisticated approach to detect if binary package build is actually requested
- # commandline args like -B or --buildpkg-exclude and other conditionals are not supported right now.
- grep -q 'buildpkg' <<< {$PORTAGE_FEATURES}
- if [ $? -eq 0 ]; then
- do_emaint && do_pkgtar && git-ftp_pusher
- fi
- fi
- do_emaint() {
- emaint binhost --check --fix
- ## checkfix packages indexfile before.. crunch..
- }
- do_pkgtar() {
- tar -czvf --update ${packagesdir}/packages.tar.gz
- ## tar-gzip /packages/packages---file before upload as
- }
- # go git-ftp push https://github.com/git-ftp/git-ftp / https://bugs.gentoo.org/show_bug.cgi?id=740124
- git-ftp_pusher () {
- if then
- git ftp catchup
- ## handle fubar's
- else
- # Work and deploy
- echo "new content" >> index.txt
- git commit index.txt -m "Add new content"
- git ftp push
- }
- # Setup "Crib" notes ...
- #git config git-ftp.url "ftp://ftp.example.net:21/public_html"
- #git config git-ftp.user "ftp-user"
- #git config git-ftp.password "secr3t"
Add Comment
Please, Sign In to add comment