dot

packages and services management
Log | Files | Refs | README

commit bf4c0b7d3b819bceb311bac03dd838a4fb8a86af
parent 10a7aede2213bdef9eceafea73b1195e6a268280
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 17 Nov 2018 11:20:23 +0100

dot/mblaze: simpler usual file:content filter rules

Diffstat:
Mbin/clip-in | 2+-
Mbin/clip-out | 1+
Mbin/m | 19-------------------
Abin/mail-com | 4++++
Abin/mail-flag | 4++++
Abin/mail-list | 14++++++++++++++
Abin/mail-print | 4++++
Abin/mail-rep | 4++++
Abin/mail-sort | 29+++++++++++++++++++++++++++++
Dbin/mfilter | 189-------------------------------------------------------------------------------
Mbin/pack-build | 6+++---
Mbin/pack-get | 4++--
Mbin/pack-install | 4++--
Mdot/mblaze/filter | 1+
Ddot/mblaze/filters | 1-
Adot/mblaze/sort/actux.eu.org | 1+
Adot/mblaze/sort/amazon.com | 1+
Adot/mblaze/sort/amnesty.org | 1+
Adot/mblaze/sort/bandcamp.com | 3+++
Adot/mblaze/sort/breizh-entropy.org | 1+
Adot/mblaze/sort/coinbase.com | 1+
Adot/mblaze/sort/crous-paris.fr | 1+
Adot/mblaze/sort/crous-rennes.fr | 1+
Adot/mblaze/sort/dragonflybsd.org--hammer | 1+
Adot/mblaze/sort/dragonflybsd.org--kernel | 1+
Adot/mblaze/sort/dropbox.com | 1+
Adot/mblaze/sort/ebay.com | 1+
Adot/mblaze/sort/epitech.eu | 2++
Adot/mblaze/sort/epitech.eu--bde | 1+
Adot/mblaze/sort/epitech.eu--intra | 1+
Adot/mblaze/sort/epitech.eu--marvin | 1+
Adot/mblaze/sort/etudiant.gouv.fr | 1+
Adot/mblaze/sort/fosdem.org | 5+++++
Adot/mblaze/sort/free.fr | 1+
Adot/mblaze/sort/freebsd.org | 1+
Adot/mblaze/sort/freenode.net | 1+
Adot/mblaze/sort/fsf.org | 1+
Adot/mblaze/sort/gandi.net | 1+
Adot/mblaze/sort/github.com | 1+
Adot/mblaze/sort/gobolinux.org | 1+
Adot/mblaze/sort/google.com | 1+
Adot/mblaze/sort/gopherproject.org | 1+
Adot/mblaze/sort/grifon.fr | 1+
Adot/mblaze/sort/keybase.io | 1+
Adot/mblaze/sort/lobste.rs | 1+
Adot/mblaze/sort/meetup.com | 1+
Adot/mblaze/sort/netsukuku.freaknet.org | 1+
Adot/mblaze/sort/nixers.net | 1+
Adot/mblaze/sort/noip.com | 1+
Adot/mblaze/sort/openbsd.org--advocacy | 1+
Adot/mblaze/sort/openbsd.org--announce | 1+
Adot/mblaze/sort/openbsd.org--tech | 1+
Adot/mblaze/sort/paypal.com | 1+
Adot/mblaze/sort/reddit.com | 2++
Adot/mblaze/sort/researchgate.net | 2++
Adot/mblaze/sort/sabotage.tech | 1+
Adot/mblaze/sort/skarnet.org | 1+
Adot/mblaze/sort/suckless.org | 1+
Adot/mblaze/sort/tarsnap.com | 1+
Adot/mblaze/sort/transports | 10++++++++++
Adot/mblaze/sort/univ-rennes1.fr | 1+
Adot/mblaze/sort/wikimedia.org | 1+
Adot/mblaze/sort/wordpress.com | 1+
Adot/mblaze/sort/yammer.com | 1+
Adot/mblaze/sort/youtube.com | 1+
Dpack/sselp/build | 4----
Dpack/sselp/config.mk | 20--------------------
Dpack/sselp/dependencies/libtinyx11 | 1-
Dpack/sselp/git | 1-
Dpack/sselp/homepage | 1-
Dpack/sselp/version | 1-
Apack/xsel/build | 11+++++++++++
Apack/xsel/dependencies/libtinyx11 | 2++
Apack/xsel/git | 1+
Apack/xsel/homepage | 1+
Apack/xsel/tar | 1+
Apack/xsel/version | 1+
77 files changed, 154 insertions(+), 245 deletions(-)

diff --git a/bin/clip-in b/bin/clip-in @@ -5,4 +5,4 @@ CLIP=${CLIP:-$HOME/.cache/clip} mkdir -p "$(dirname "$CLIP")" touch "$CLIP" chmod 600 "$CLIP" -cat >$CLIP +tee $CLIP | xsel -i diff --git a/bin/clip-out b/bin/clip-out @@ -2,4 +2,5 @@ CLIP=${CLIP:-$HOME/.cache/clip} +xsel -i <$CLIP cat "$CLIP" diff --git a/bin/m b/bin/m @@ -9,13 +9,6 @@ cmd=${1#-} shift case "$cmd" in -(h) - mlist "$MAILDIR/${1:-INBOX}" | msort -rd | mthread -v | mseq -S | - mscan -f "$FORMAT" - ;; -(p) - mshow "$@" - ;; (v) FILE="$(mktemp /tmp/html_mail.XXXXXXXXXXXXXXX)" mv "$FILE" "${FILE}.html" @@ -24,12 +17,6 @@ case "$cmd" in links "$FILE" rm "$FILE" ;; -(r) - mrep "$@" - ;; -(w) - mcom "$@" - ;; (l) find "$MAILDIR" -type d | sed -r 's,^/,,; /\/(new|cur|tmp)$/d; s,[^/]*/, ,g' @@ -38,12 +25,6 @@ case "$cmd" in mbsync -aq exec "$0" scan ;; -(s) - mflag -S "$@" - ;; -(d) - mflag -T "$@" - ;; (f) mfilter "$MAILDIR" ;; diff --git a/bin/mail-com b/bin/mail-com @@ -0,0 +1,4 @@ +#!/usr/bin/env execlineb +backtick x { dollarat -d "\n" } importas -s -d "\n" @ x + +mcom $@ diff --git a/bin/mail-flag b/bin/mail-flag @@ -0,0 +1,4 @@ +#!/usr/bin/env execlineb +backtick x { dollarat -d "\n" } importas -s -d "\n" @ x + +mflag $@ diff --git a/bin/mail-list b/bin/mail-list @@ -0,0 +1,14 @@ +#!/usr/bin/env execlineb +backtick -n x { whoami } importas user x +backtick -n x { homeof $x } importas home x +multisubstitute { + importas -D INBOX INBOX 1 + importas -D $home MAILDIR MAILDIR + define FORMAT "\\n%c%4n %i%s\\n %t%u %i%D %40f" +} + +pipeline { mlist ${MAILDIR}/${INBOX} } +pipeline { msort -rd } +pipeline { mthread -v } +pipeline { mseq -S } +mscan -f $FORMAT diff --git a/bin/mail-print b/bin/mail-print @@ -0,0 +1,4 @@ +#!/usr/bin/env execlineb +backtick x { dollarat -d "\n" } importas -s -d "\n" @ x + +mshow $@ diff --git a/bin/mail-rep b/bin/mail-rep @@ -0,0 +1,4 @@ +#!/usr/bin/env execlineb +backtick x { dollarat -d "\n" } importas -s -d "\n" @ x + +mrep $@ diff --git a/bin/mail-sort b/bin/mail-sort @@ -0,0 +1,29 @@ +#!/usr/bin/env execlineb + +backtick -n x { whoami } importas user x +backtick -n x { homeof $user } importas home x +multisubstitute { + importas -D ${home}/.mblaze mblaze MBLAZE + importas -D INBOX inbox 1 + importas -D ${home}/mail maildir MAILDIR +} + +cd $maildir + +fdmove -c 1 2 + +forbacktickx -n x { ls ${mblaze}/sort } importas target x +if { mkdir -p "$target/cur" "$target/new" "$target/tmp" } +if { printf '%-35s ' "$target" } + +backtick -n x { + pipeline { cat ${mblaze}/sort/${target} } + tr "\n" " " +} importas rule x + +forbacktickx -n x { + pipeline { mlist $inbox } + mpick -t $rule +} importas file x + +if { test ${file} != ${target}/new } mv $file ${target}/new diff --git a/bin/mfilter b/bin/mfilter @@ -1,189 +0,0 @@ -#!/bin/sh -e -# read and filter mails using mblaze - -MBLAZE="${MBLAZE:-$HOME/.mblaze/}" - -cd "$HOME/mail" - -filter() { - mkdir -p "$1/cur" "$1/new" "$1/tmp" - printf '%-35s ' "$1" >&2 - echo "$2" - mlist INBOX | mpick -t "$(echo "$2" | tr '\n' ' ')" | - while IFS='' read -r file - do ! test "$file" = "$1/new" && mv "$file" "$1/new" - done -} - -filter actux.eu.org ' - "To" ~~~ "*@actux.eu.org*" -' -filter amazon.com ' - "From" ~~~ "*@amazon.*" -' -filter amnesty.org ' - "From" ~~~ "*amnesty.*" -' -filter bandcamp.com ' - "From" ~~~ "*Cryo Chamber*" -' -filter bandcamp.com ' - "From" ~~~ "*bandcamp.com*" -' -filter bandcamp.com ' - "From" ~~~ "*makeupandvanityset.com*" -' -filter breizh-entropy.org ' - "List-Id" ~~~ "*breizh-entropy.org*" -' -filter coinbase.com ' - "From" ~~~ "*coinbase.com*" -' -filter crous-paris.fr ' - "From" ~~~ "*crous-paris.fr*" -' -filter crous-rennes.fr ' - "From" ~~~ "*crous-rennes.fr*" -' -filter dragonflybsd.org--hammer ' - "List-Id" ~~~ "*hammer.dragonflybsd.org*" -' -filter dragonflybsd.org--kernel ' - "List-Id" ~~~ "*kernel.dragonflybsd.org*" -' -filter dropbox.com ' - "From" ~~~ "*dropbox.*" -' -filter ebay.com ' - "From" ~~~ "*ebay.*" -' -filter epitech.eu--bde ' - "From" ~~~ "*bde.epitech.rennes@gmail.com*" -' -filter epitech.eu--intra ' - "From" ~~~ "*@intra.epitech.eu*" -' -filter epitech.eu--marvin ' - "From" ~~~ "*nao.marvin@epitech.eu*" -' -filter epitech.eu ' - "From" ~~~ "*@epitech.eu*" || - "From" ~~~ "*ionis-group.org*" -' -filter etudiant.gouv.fr ' - "From" ~~~ "*etudiant.gouv.fr*" -' -filter fosdem.org ' - "List-Id" ~~~ "*fosdem.lists.fosdem.org*" || - "List-Id" ~~~ "*distributions-devroom.lists.fosdem.org*" || - "List-Id" ~~~ "*network-devroom.lists.fosdem.org*" || - "List-Id" ~~~ "*security-devroom.lists.fosdem.org*" || - "From" ~~~ "*fosdem.org*" -' -filter free.fr ' - "From" ~~~ "*@free-mobile.fr*" -' -filter freebsd.org ' - "From" ~~~ "*freebsd.org*" -' -filter freenode.net ' - "From" ~~~ "*freenode.net*" -' -filter fsf.org ' - "From" ~~~ "*fsf.org*" -' -filter gandi.net ' - "From" ~~~ "*gandi.net*" -' -filter github.com ' - "From" ~~~ "*github.com*" -' -filter gobolinux.org ' - "List-Id" ~~~ "*gobolinux.org*" -' -filter google.com ' - "From" ~~~ "*google.com*" -' -filter gopherproject.org ' - "List-Id" ~~~ "*gopher-project*" -' -filter grifon.fr ' - "List-Id" ~~~ "*grifon.fr*" -' -filter keybase.io ' - "From" ~~~ "*keybase.io*" -' -filter lobste.rs ' - "From" ~~~ "*@lobste.rs*" -' -filter meetup.com ' - "From" ~~~ "*meetup.com*" -' -filter netsukuku.freaknet.org ' - "List-Id" ~~~ "*netsukuku.lists.dyne.org*" -' -filter nixers.net ' - "From" ~~~ "*@nixers.net*" -' -filter noip.com ' - "From" ~~~ "*@noip.com*" -' -filter openbsd.org--advocacy ' - "List-ID" ~~~ "*advocacy.openbsd.org*" -' -filter openbsd.org--announce ' - "List-ID" ~~~ "*announce.openbsd.org*" -' -filter openbsd.org--tech ' - "List-ID" ~~~ "*tech.openbsd.org*" -' -filter paypal.com ' - "From" ~~~ "*paypal.*" -' -filter reddit.com ' - "From" ~~~ "*@reddit.*" || - "From" ~~~ "*@redditmail.com*" -' -filter researchgate.net ' - "From" ~~~ "*@researchgate.*" || - "From" ~~~ "*@researchgatemail.*" -' -filter sabotage.tech ' - "Mailing-List" ~~~ "*sabotage*@lists.openwall.com*" -' -filter skarnet.org ' - "List-Post" ~~~ "*@list.skarnet.org*" -' -filter suckless.org ' - "List-Id" ~~~ "*suckless.org*" -' -filter tarsnap.com ' - "From" ~~~ "*tarsnap.com*" -' -filter transports ' - "From" ~~~ "*BlaBlaCar*" || - "From" ~~~ "*flixbus*" || - "From" ~~~ "*keolis.com*" || - "From" ~~~ "*megabus*" || - "From" ~~~ "*oui.sncf*" || - "From" ~~~ "*ouibus*" || - "From" ~~~ "*ouigo*" || - "From" ~~~ "*sncf.com*" || - "From" ~~~ "*sobus.com*" || - "From" ~~~ "*trainline.com*" -' -filter univ-rennes1.fr ' - "List-Id" ~~~ "*univ-rennes1.fr*" -' -filter wikimedia.org ' - "From" ~~~ "*wikimedia.org*" -' -filter wordpress.com ' - "From" ~~~ "*wordpress.com*" -' -filter yammer.com ' - "From" ~~~ "*yammer.com*" -' -filter youtube.com ' - "From" ~~~ "*youtube.com*" -' diff --git a/bin/pack-build b/bin/pack-build @@ -6,12 +6,12 @@ test ! -d "/var/pack/pkg/$pack/$version" || exit 0 trap "rm -rf '/var/pack/pkg/$pack/$version'" EXIT pack-get "$pack" "$version" | tr -d '\n' echo ' build' -mkdir -p "/var/pack/log/$pack/$version" -exec >"/var/pack/log/$pack/$version/build" 2>&1 +mkdir -p "/var/log/pack/$pack/$version" +exec >"/var/log/pack/$pack/$version/build" 2>&1 mkdir -p "/var/pack/pkg/$pack" set -- -if [ -d /var/pack/def/$pack/dependencies ]; then +if [ -d /etc/pack/$pack/dependencies ]; then cd "/etc/pack/$pack/dependencies" for d in *; do set -- "$@" "$d=/var/pack/pkg/$d/$(sed q $d)"; done fi diff --git a/bin/pack-get b/bin/pack-get @@ -5,8 +5,8 @@ pack=$1 version=${2:-$(sed q "/etc/pack/$1/version")} test ! -d "/var/pack/src/$pack/$version" || exit 0 trap "rm -rf '/var/pack/src/$pack/$version'" EXIT echo ' get' -mkdir -p "/var/pack/log/$pack/$version" -exec >"/var/pack/log/$pack/$version/get" 2>&1 +mkdir -p "/var/log/pack/$pack/$version" +exec >"/var/log/pack/$pack/$version/get" 2>&1 test ! -f "/etc/pack/$pack/tar" || exec pack-tar "$pack" "$version" test ! -f "/etc/pack/$pack/git" || exec pack-git "$pack" "$version" diff --git a/bin/pack-install b/bin/pack-install @@ -4,8 +4,8 @@ pack=$1 version=${2:-$(sed q "/etc/pack/$1/version")} pack-build "$pack" "$version" | tr -d '\n' echo ' install' -mkdir -p "/var/pack/log/$pack/$version" -exec >/var/pack/log/$pack/$version/install 2>&1 +mkdir -p "/var/log/pack/$pack/$version" +exec >/var/log/pack/$pack/$version/install 2>&1 mkdir -p "/var/pack/bin" "/var/pack/man" cd "/var/pack/pkg/$pack/$version" diff --git a/dot/mblaze/filter b/dot/mblaze/filter @@ -1 +1,2 @@ application/octet-stream: gpg -d +application/pgp-encrypted: gpg -d diff --git a/dot/mblaze/filters b/dot/mblaze/filters @@ -1 +0,0 @@ -application/pgp-encrypted: gpg -d diff --git a/dot/mblaze/sort/actux.eu.org b/dot/mblaze/sort/actux.eu.org @@ -0,0 +1 @@ +"To" ~~~ "*@actux.eu.org*" diff --git a/dot/mblaze/sort/amazon.com b/dot/mblaze/sort/amazon.com @@ -0,0 +1 @@ +"From" ~~~ "*@amazon.*" diff --git a/dot/mblaze/sort/amnesty.org b/dot/mblaze/sort/amnesty.org @@ -0,0 +1 @@ +"From" ~~~ "*amnesty.*" diff --git a/dot/mblaze/sort/bandcamp.com b/dot/mblaze/sort/bandcamp.com @@ -0,0 +1,3 @@ +"From" ~~~ "*Cryo Chamber*" || +"From" ~~~ "*bandcamp.com*" || +"From" ~~~ "*makeupandvanityset.com*" diff --git a/dot/mblaze/sort/breizh-entropy.org b/dot/mblaze/sort/breizh-entropy.org @@ -0,0 +1 @@ +"List-Id" ~~~ "*breizh-entropy.org*" diff --git a/dot/mblaze/sort/coinbase.com b/dot/mblaze/sort/coinbase.com @@ -0,0 +1 @@ +"From" ~~~ "*coinbase.com*" diff --git a/dot/mblaze/sort/crous-paris.fr b/dot/mblaze/sort/crous-paris.fr @@ -0,0 +1 @@ +"From" ~~~ "*crous-paris.fr*" diff --git a/dot/mblaze/sort/crous-rennes.fr b/dot/mblaze/sort/crous-rennes.fr @@ -0,0 +1 @@ +"From" ~~~ "*crous-rennes.fr*" diff --git a/dot/mblaze/sort/dragonflybsd.org--hammer b/dot/mblaze/sort/dragonflybsd.org--hammer @@ -0,0 +1 @@ +"List-Id" ~~~ "*hammer.dragonflybsd.org*" diff --git a/dot/mblaze/sort/dragonflybsd.org--kernel b/dot/mblaze/sort/dragonflybsd.org--kernel @@ -0,0 +1 @@ +"List-Id" ~~~ "*kernel.dragonflybsd.org*" diff --git a/dot/mblaze/sort/dropbox.com b/dot/mblaze/sort/dropbox.com @@ -0,0 +1 @@ +"From" ~~~ "*dropbox.*" diff --git a/dot/mblaze/sort/ebay.com b/dot/mblaze/sort/ebay.com @@ -0,0 +1 @@ +"From" ~~~ "*ebay.*" diff --git a/dot/mblaze/sort/epitech.eu b/dot/mblaze/sort/epitech.eu @@ -0,0 +1,2 @@ +"From" ~~~ "*@epitech.eu*" || +"From" ~~~ "*ionis-group.org*" diff --git a/dot/mblaze/sort/epitech.eu--bde b/dot/mblaze/sort/epitech.eu--bde @@ -0,0 +1 @@ +"From" ~~~ "*bde.epitech.rennes@gmail.com*" diff --git a/dot/mblaze/sort/epitech.eu--intra b/dot/mblaze/sort/epitech.eu--intra @@ -0,0 +1 @@ +"From" ~~~ "*@intra.epitech.eu*" diff --git a/dot/mblaze/sort/epitech.eu--marvin b/dot/mblaze/sort/epitech.eu--marvin @@ -0,0 +1 @@ +"From" ~~~ "*nao.marvin@epitech.eu*" diff --git a/dot/mblaze/sort/etudiant.gouv.fr b/dot/mblaze/sort/etudiant.gouv.fr @@ -0,0 +1 @@ +"From" ~~~ "*etudiant.gouv.fr*" diff --git a/dot/mblaze/sort/fosdem.org b/dot/mblaze/sort/fosdem.org @@ -0,0 +1,5 @@ +"List-Id" ~~~ "*fosdem.lists.fosdem.org*" || +"List-Id" ~~~ "*distributions-devroom.lists.fosdem.org*" || +"List-Id" ~~~ "*network-devroom.lists.fosdem.org*" || +"List-Id" ~~~ "*security-devroom.lists.fosdem.org*" || +"From" ~~~ "*fosdem.org*" diff --git a/dot/mblaze/sort/free.fr b/dot/mblaze/sort/free.fr @@ -0,0 +1 @@ +"From" ~~~ "*@free-mobile.fr*" diff --git a/dot/mblaze/sort/freebsd.org b/dot/mblaze/sort/freebsd.org @@ -0,0 +1 @@ +"From" ~~~ "*freebsd.org*" diff --git a/dot/mblaze/sort/freenode.net b/dot/mblaze/sort/freenode.net @@ -0,0 +1 @@ +"From" ~~~ "*freenode.net*" diff --git a/dot/mblaze/sort/fsf.org b/dot/mblaze/sort/fsf.org @@ -0,0 +1 @@ +"From" ~~~ "*fsf.org*" diff --git a/dot/mblaze/sort/gandi.net b/dot/mblaze/sort/gandi.net @@ -0,0 +1 @@ +"From" ~~~ "*gandi.net*" diff --git a/dot/mblaze/sort/github.com b/dot/mblaze/sort/github.com @@ -0,0 +1 @@ +"From" ~~~ "*github.com*" diff --git a/dot/mblaze/sort/gobolinux.org b/dot/mblaze/sort/gobolinux.org @@ -0,0 +1 @@ +"List-Id" ~~~ "*gobolinux.org*" diff --git a/dot/mblaze/sort/google.com b/dot/mblaze/sort/google.com @@ -0,0 +1 @@ +"From" ~~~ "*google.com*" diff --git a/dot/mblaze/sort/gopherproject.org b/dot/mblaze/sort/gopherproject.org @@ -0,0 +1 @@ +"List-Id" ~~~ "*gopher-project*" diff --git a/dot/mblaze/sort/grifon.fr b/dot/mblaze/sort/grifon.fr @@ -0,0 +1 @@ +"List-Id" ~~~ "*grifon.fr*" diff --git a/dot/mblaze/sort/keybase.io b/dot/mblaze/sort/keybase.io @@ -0,0 +1 @@ +"From" ~~~ "*keybase.io*" diff --git a/dot/mblaze/sort/lobste.rs b/dot/mblaze/sort/lobste.rs @@ -0,0 +1 @@ +"From" ~~~ "*@lobste.rs*" diff --git a/dot/mblaze/sort/meetup.com b/dot/mblaze/sort/meetup.com @@ -0,0 +1 @@ +"From" ~~~ "*meetup.com*" diff --git a/dot/mblaze/sort/netsukuku.freaknet.org b/dot/mblaze/sort/netsukuku.freaknet.org @@ -0,0 +1 @@ +"List-Id" ~~~ "*netsukuku.lists.dyne.org*" diff --git a/dot/mblaze/sort/nixers.net b/dot/mblaze/sort/nixers.net @@ -0,0 +1 @@ +"From" ~~~ "*@nixers.net*" diff --git a/dot/mblaze/sort/noip.com b/dot/mblaze/sort/noip.com @@ -0,0 +1 @@ +"From" ~~~ "*@noip.com*" diff --git a/dot/mblaze/sort/openbsd.org--advocacy b/dot/mblaze/sort/openbsd.org--advocacy @@ -0,0 +1 @@ +"List-ID" ~~~ "*advocacy.openbsd.org*" diff --git a/dot/mblaze/sort/openbsd.org--announce b/dot/mblaze/sort/openbsd.org--announce @@ -0,0 +1 @@ +"List-ID" ~~~ "*announce.openbsd.org*" diff --git a/dot/mblaze/sort/openbsd.org--tech b/dot/mblaze/sort/openbsd.org--tech @@ -0,0 +1 @@ +"List-ID" ~~~ "*tech.openbsd.org*" diff --git a/dot/mblaze/sort/paypal.com b/dot/mblaze/sort/paypal.com @@ -0,0 +1 @@ +"From" ~~~ "*paypal.*" diff --git a/dot/mblaze/sort/reddit.com b/dot/mblaze/sort/reddit.com @@ -0,0 +1,2 @@ +"From" ~~~ "*@reddit.*" || +"From" ~~~ "*@redditmail.com*" diff --git a/dot/mblaze/sort/researchgate.net b/dot/mblaze/sort/researchgate.net @@ -0,0 +1,2 @@ +"From" ~~~ "*@researchgate.*" || +"From" ~~~ "*@researchgatemail.*" diff --git a/dot/mblaze/sort/sabotage.tech b/dot/mblaze/sort/sabotage.tech @@ -0,0 +1 @@ +"Mailing-List" ~~~ "*sabotage*@lists.openwall.com*" diff --git a/dot/mblaze/sort/skarnet.org b/dot/mblaze/sort/skarnet.org @@ -0,0 +1 @@ +"List-Post" ~~~ "*@list.skarnet.org*" diff --git a/dot/mblaze/sort/suckless.org b/dot/mblaze/sort/suckless.org @@ -0,0 +1 @@ +"List-Id" ~~~ "*suckless.org*" diff --git a/dot/mblaze/sort/tarsnap.com b/dot/mblaze/sort/tarsnap.com @@ -0,0 +1 @@ +"From" ~~~ "*tarsnap.com*" diff --git a/dot/mblaze/sort/transports b/dot/mblaze/sort/transports @@ -0,0 +1,10 @@ +"From" ~~~ "*BlaBlaCar*" || +"From" ~~~ "*flixbus*" || +"From" ~~~ "*keolis.com*" || +"From" ~~~ "*megabus*" || +"From" ~~~ "*oui.sncf*" || +"From" ~~~ "*ouibus*" || +"From" ~~~ "*ouigo*" || +"From" ~~~ "*sncf.com*" || +"From" ~~~ "*sobus.com*" || +"From" ~~~ "*trainline.com*" diff --git a/dot/mblaze/sort/univ-rennes1.fr b/dot/mblaze/sort/univ-rennes1.fr @@ -0,0 +1 @@ +"List-Id" ~~~ "*univ-rennes1.fr*" diff --git a/dot/mblaze/sort/wikimedia.org b/dot/mblaze/sort/wikimedia.org @@ -0,0 +1 @@ +"From" ~~~ "*wikimedia.org*" diff --git a/dot/mblaze/sort/wordpress.com b/dot/mblaze/sort/wordpress.com @@ -0,0 +1 @@ +"From" ~~~ "*wordpress.com*" diff --git a/dot/mblaze/sort/yammer.com b/dot/mblaze/sort/yammer.com @@ -0,0 +1 @@ +"From" ~~~ "*yammer.com*" diff --git a/dot/mblaze/sort/youtube.com b/dot/mblaze/sort/youtube.com @@ -0,0 +1 @@ +"From" ~~~ "*youtube.com*" diff --git a/pack/sselp/build b/pack/sselp/build @@ -1,4 +0,0 @@ -#!/bin/sh -ex - -cp "$DEF/config.mk" . -make PREFIX="$PREFIX" install diff --git a/pack/sselp/config.mk b/pack/sselp/config.mk @@ -1,20 +0,0 @@ -# sselp version -VERSION = 0.2 - -# Customize below to fit your system - -# paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man - -# includes and libs -INCS = -I. -I$(libtinyx11)/include -LIBS = -lc -L$(libtinyx11)/lib -lX11 - -# flags -CPPFLAGS = -DVERSION=\"${VERSION}\" -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -LDFLAGS = -s ${LIBS} -static - -# compiler and linker -CC = cc diff --git a/pack/sselp/dependencies/libtinyx11 b/pack/sselp/dependencies/libtinyx11 @@ -1 +0,0 @@ -git diff --git a/pack/sselp/git b/pack/sselp/git @@ -1 +0,0 @@ -git://git.suckless.org/sselp/ diff --git a/pack/sselp/homepage b/pack/sselp/homepage @@ -1 +0,0 @@ -http://tools.suckless.org/x/sselp/ diff --git a/pack/sselp/version b/pack/sselp/version @@ -1 +0,0 @@ -git diff --git a/pack/xsel/build b/pack/xsel/build @@ -0,0 +1,11 @@ +#!/bin/sh -ex + +./configure \ + --prefix="$PREFIX" \ + --x-includes="$libtinyx11/include" \ + --x-libraries="$libtinyx11/lib -static -lX11" + +sed 's/ -Werror//g' Makefile >$$ +mv $$ Makefile + +make install diff --git a/pack/xsel/dependencies/libtinyx11 b/pack/xsel/dependencies/libtinyx11 @@ -0,0 +1 @@ +../../libtinyx11/version+ \ No newline at end of file diff --git a/pack/xsel/git b/pack/xsel/git @@ -0,0 +1 @@ +git://github.com/kfish/xsel.git diff --git a/pack/xsel/homepage b/pack/xsel/homepage @@ -0,0 +1 @@ +http://www.kfish.org/software/xsel/ diff --git a/pack/xsel/tar b/pack/xsel/tar @@ -0,0 +1 @@ +http://www.kfish.org/software/xsel/download/xsel-%v.tar.gz diff --git a/pack/xsel/version b/pack/xsel/version @@ -0,0 +1 @@ +1.2.0