From 137ea580a7150a00bb287255cfc4bddcb74e299e Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Mon, 19 Mar 2012 23:04:54 +0100 Subject: [PATCH] 1.3.1 --- automount-1.3.1.tar.gz | Bin 0 -> 3636 bytes port/distfiles/automount-1.2.1.tar.gz | Bin 3455 -> 0 bytes port/distfiles/automount-1.2.1/automount | 232 ---------------- port/distfiles/automount-1.2.1/automount.conf | 7 - .../automount-1.2.1/automount.conf.sample | 5 - .../automount-1.2.1/automount_devd.conf | 14 - port/distfiles/automount-1.2.tar.gz | Bin 3448 -> 0 bytes port/distfiles/automount-1.2/automount | 233 ---------------- port/distfiles/automount-1.2/automount.conf | 7 - .../automount-1.2/automount.conf.sample | 5 - .../automount-1.2/automount_devd.conf | 14 - port/distfiles/automount-1.3.1.tar.gz | Bin 3681 -> 0 bytes port/distfiles/automount-1.3.1/automount | 253 ------------------ port/distfiles/automount-1.3.1/automount.conf | 7 - .../automount-1.3.1/automount.conf.sample | 5 - .../automount-1.3.1/automount_devd.conf | 14 - port/distfiles/automount-1.3.tar.gz | Bin 3492 -> 0 bytes port/distfiles/automount-1.3/automount | 236 ---------------- port/distfiles/automount-1.3/automount.conf | 7 - .../automount-1.3/automount.conf.sample | 5 - .../automount-1.3/automount_devd.conf | 14 - port/sysutils/automount.shar | 81 ------ port/sysutils/automount/distinfo | 2 - .../sysutils => sysutils}/automount/Makefile | 2 +- .../sysutils => sysutils}/automount/pkg-descr | 0 .../automount/pkg-install | 0 26 files changed, 1 insertion(+), 1142 deletions(-) create mode 100644 automount-1.3.1.tar.gz delete mode 100644 port/distfiles/automount-1.2.1.tar.gz delete mode 100755 port/distfiles/automount-1.2.1/automount delete mode 100644 port/distfiles/automount-1.2.1/automount.conf delete mode 100644 port/distfiles/automount-1.2.1/automount.conf.sample delete mode 100644 port/distfiles/automount-1.2.1/automount_devd.conf delete mode 100644 port/distfiles/automount-1.2.tar.gz delete mode 100755 port/distfiles/automount-1.2/automount delete mode 100644 port/distfiles/automount-1.2/automount.conf delete mode 100644 port/distfiles/automount-1.2/automount.conf.sample delete mode 100644 port/distfiles/automount-1.2/automount_devd.conf delete mode 100644 port/distfiles/automount-1.3.1.tar.gz delete mode 100755 port/distfiles/automount-1.3.1/automount delete mode 100644 port/distfiles/automount-1.3.1/automount.conf delete mode 100644 port/distfiles/automount-1.3.1/automount.conf.sample delete mode 100644 port/distfiles/automount-1.3.1/automount_devd.conf delete mode 100644 port/distfiles/automount-1.3.tar.gz delete mode 100755 port/distfiles/automount-1.3/automount delete mode 100644 port/distfiles/automount-1.3/automount.conf delete mode 100644 port/distfiles/automount-1.3/automount.conf.sample delete mode 100644 port/distfiles/automount-1.3/automount_devd.conf delete mode 100644 port/sysutils/automount.shar delete mode 100644 port/sysutils/automount/distinfo rename {port/sysutils => sysutils}/automount/Makefile (90%) rename {port/sysutils => sysutils}/automount/pkg-descr (100%) rename {port/sysutils => sysutils}/automount/pkg-install (100%) diff --git a/automount-1.3.1.tar.gz b/automount-1.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0b482cad65796ef239a1f9fdf6e30c821c3e7e1c GIT binary patch literal 3636 zcmV-44$JW$iwFRDt!GaF1MOOCciKo2ozMJ=TI>vV#xerzc!q?W#URI=gTaeL5})y| zk1PqJjXexYG6O)lb%L2`JM+i- zeW^W}NA~_-BIbtwv(LYwjnDhPuGWtZR{pOy;Qym~P5p+{-w?y2@_+9Ct-nz9+MQR! zX{oeD9e;5bxHr>?cC1~htF=1mp84LNxdFZL|7p37HRX%Q`pJApJ1Hl-7~1wc5<^1@ zoX`nw9ecmDg@%!1yI~Z#*Ky?fb28^P#i2v)oI*biEJxe{1T(m!i66|uJ$mm(Q}P4x z?#B_7%zWFOxR%K(_Q(tzTEMm&MUG92z`u2ETtrhdf(p;`-@Ef0vi!O2@_9Ru3$f`sH0r6Sw6;+Zp#%+ya+xWGqqKr=IP0@w7y z71_c^tT#Ui>2c$M^#+~(xZ4}N+9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J_u%=9G}6Z$9__MJ8WB6L(L}R`*t0B3i?klvP@`2xrDy z{_f_y-@a%yRdF6!@h%CI_CO0)I`V)o;pXbzjT$Fk1gG{t@$TjE16RZmSJGJ>Eo)LK zwx4s7tP<}N3X}iH)3U)SZ8vh1=4nk%c55_BDwUsbSK3=9hbNyO630$H))9e=7+Df6 zD2tNg6hA@Z8nuer^V;*RcUT}eo^j#KCoJ)FaV5zhWwNrj5x=W)nVC)cls^;Xa)3BA zB)u#7?z{AD?vs3)nAP78Ym^|%Ij_u}2ToHm7}A1v9rq(u?<2T3dMEff=EOQIZ6RmP z*du}O@v|oWG66SV@KSw?!hcFdeo(;0iuq@daZHvtoZ%UA0fFXmKT~{ z`dQy*h)01bAKBM`t&MNpvhUnl;ybTmwf;xSqwD{Qe_kMxz^}IPrS*UC>~Q_}fAw0e z(J0pcA0hnfvB@1_KNW@k%#5rlmE{+7Wh$d~Inm3{S1tTZ68AeJ4Fzw$!9u*CVaGN< z&1P0;@BXMNKm7eW(Zv*xhN!&pW0zI1(KZh!`DhVCmMDh45?NQ%jnVMpw}zIKe-hfC z?X*G)DWs4>3Mr(JLJBFQkU|P6q>w@iDWs4>3Mr(JLJBFQkU|P6q>w@iN#x&69;BfF GPyhfBpeNk` literal 0 HcmV?d00001 diff --git a/port/distfiles/automount-1.2.1.tar.gz b/port/distfiles/automount-1.2.1.tar.gz deleted file mode 100644 index 00458acb2ec9edce03dca6f12428d9ac2cb0276c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3455 zcmV-_4S@0=iwFQ|g;Gxd1MOOEQ`<-q-p~FOy@D*Ti|`93WS#Za8e0Ta8Jn}@B-C<8 z2}usR$d*qpBy8gUeoxOxvTPviOR~FHr!ET1nwjorp6==Ck!&S#Fb$Gftk(A$d-dv9 zUqEWL+TpI4$Z^h#&d8HUt2L$_%Jk5fYd~Yyo0?4SZL@4L7CKKnG+N#GdW$qJtNa4|S}iXmRF< z!Am%>Y5SHpbwlt%jk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5>lcSBHCbjgrmn>kW|&T8UEeZF|i|AnmoU;w!9tA2ghlwlVy!G*Q?Yq+ac{*dOk$ zr9JTo@prBK^x)l)0`Y;D$@q{+(3v8p641HeMElJ2UXN07Ei#hFUnbZJH+&w;B-dk=~ zXpIt5m+8(X9LsL_^~hPjbKY*%M9IJ8T@ohkffg=h_gY5Aj%NFA~qS{-BLot;SXC zgTMc&A2h`8KkCg|^XdKp)f)Bv!-MkoAAg1vo>(CZRDRXdZ1E^4<0F6l(_VY)lD~6l zi+3JnX82pmgX{m2UoVR!@P}55)R!G@6b2!BbxU^+vh={}kb04^3{V4#-@E zPOTW{ZAHGIQAk1gfK&PNWeb-BxZfRVD9DNpHsS>h+m7{dI<+Hb=jWRG{Xf4GT`cho zft0l$J1m2ZHhDP72U{4jKsoU{k@Ymg91YJuH?*{blFOY&^F98#THA zHx3V)`}+;7|609X{{Hh%k+uC_zI7T53olp8x}cO&N-3q3Qc5YMlu}A5rIb=iDW#NB hN-3q3Qc5YMlu}A5rIb=iDdq1h{{?`CgH!-e0075`$`Akm diff --git a/port/distfiles/automount-1.2.1/automount b/port/distfiles/automount-1.2.1/automount deleted file mode 100755 index ed913cd..0000000 --- a/port/distfiles/automount-1.2.1/automount +++ /dev/null @@ -1,232 +0,0 @@ -#! /bin/sh - -# Copyright (c) 2012 Slawomir Wojciech Wojtczak (vermaden) -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that following conditions are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY -# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PATH=${PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin - -__usage() { - cat << EOF -AUTOMOUNT is a devd(8) based automounter for FreeBSD. - -It supports following file systems: -UFS/FAT/exFAT/NTFS/EXT2/EXT3/EXT4 - -It needs these ports to mount NTFS/exFAT/EXT4 respectively: - o sysutils/fusefs-ntfs - o sysutils/fusefs-exfat - o sysutils/fusefs-ext4fuse - -By default it mounts/unmounts all removable media but -it is possible to set some additional options at the -/usr/local/etc/automount.conf config file. - -Below is a list of possible options with description. - -MNTPREFIX (set to /media by default) - With this options You can alter the default root - for mounting the removable media, for example to - the /mnt directory. - - example: MNTPREFIX="/media" - -ENCODING (set to en_US.ISO8859-1 by default) - Only used with FAT32 mounts, specifies which - encoding to use at the mount. - - example: ENCODING="pl_PL.ISO8859-2" - -CODEPAGE (set to cp437 by default) - Only used with FAT32 mounts, specifies which - code page to use at the mount. - - example: CODEPAGE="cp852" - -USER (unset by default) - If set to some username, the mount command will - chown(1) the mount directory with the user and - its primary user group. If used with FM option - allows to launch the specified file manager after - a successful mount. - - example: USER="vermaden" - -FM (unset by default) - If set to file manager command, the mount will - launch the specified command after successful - mount. Works only if USER parameter is also set. - - example: FM="nautilus --browser --no-desktop" - -USERUMOUNT (set to NO by default) - When set to YES it will 'chmod +s /sbin/umount' - which would allow an USER to unmount the file - system with their selected file manager. - - example: USERUMOUNT="YES" - -ATIME (set to YES by default) - When set to NO it will mount filesystems with - noatime options when possible. - - example: ATIME="NO" - -REMOVEDIRS (set to NO by default) - When set to YES it will remove empty directories - under the used ${MNTPREFIX} after device detach. - - example: REMOVEDIRS="YES" - -EOF - exit 0 -} - -[ "${1}" = "-h" -o "${1}" = "--help" -o ${#} -eq 0 -o ${#} -eq 1 ] && __usage - -[ -f /usr/local/etc/automount.conf ] && . /usr/local/etc/automount.conf - -: ${MNTPREFIX="/media"} # mount prefix -: ${LOG="/var/log/automount.log"} # log file -: ${STATE="/var/run/automount.state"} # current state file -: ${ENCODING="en_US.ISO8859-1"} # US/Canada -: ${CODEPAGE="cp437"} # US/Canada -: ${DATEFMT="%Y-%m-%d %H:%M:%S"} # 2012-02-20 07:49:09 -: ${USERUMOUNT="NO"} # when YES add suid bit to umount(8) -: ${ATIME="YES"} # when NO mount with noatime -: ${REMOVEDIRS="NO"} # remove empty dirs under ${MNTPREFIX} -: ${USER="0"} # which user to use for popup -: ${FM="0"} # which file manager to use - -[ "${USERUMOUNT}" = YES ] && chmod u+s /sbin/umount # WHEEL group member - -__create_mount_point() { # 1=DEV - mkdir -p ${MNT} - [ "${USER}" = 0 ] || chown ${USER}:$( id -g -n ${USER} ) ${MNT} -} - -__check_already_mounted() { # 1=MNT - mount | grep " ${1} " 1> /dev/null 2> /dev/null && { - __log "${DEV}:already mounted (ntfs)" - exit 0 - } -} - -__state_add() { # 1=DEV 2=PROVIDER 3=MNT - grep -E "${3}$" ${STATE} 1> /dev/null 2> /dev/null && { - __log "${1}:duplicated '${STATE}'" - exit 0 - } - echo "${1} ${2} ${3}" >> ${STATE} -} - -__state_remove() { # 1=MNT - BSMNT=$( echo ${1} | sed 's/\//\\\//g' ) # backslash the slashes ;) - sed -i '' "/${BSMNT}\$/d" ${STATE} -} - -__log() { # @=MESSAGE - echo $( date +"${DATEFMT}" ) ${@} >> ${LOG} -} - -DEV=/dev/${1} - -case ${2} in - (attach) - ADD=0 - MNT="${MNTPREFIX}/${1}" - __check_already_mounted ${MNT} - __create_mount_point ${DEV} - [ "${ATIME}" = NO ] && OPTS="noatime" - case $( file -b -L -s ${DEV} | sed -E 's/label:\ \".*\"//g' ) in - (*FAT*) # must be before NTFS section: newfs_msdos -O NTFS -L NTFS - dd < ${DEV} count=1 2> /dev/null | strings | grep "FAT32" && { - fsck_msdosfs -y ${DEV} - mount_msdosfs -o large -D ${CODEPAGE} -L ${ENCODING} \ - -m 644 -M 755 ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (fat)" - } - ;; - (*NTFS*) # must be after FAT section: newfs_msdos -O NTFS -L NTFS - dd < ${DEV} count=1 2> /dev/null | strings | head -1 | grep "NTFS" && { - which ntfs-3g 1> /dev/null 2> /dev/null && { - ntfs-3g -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ntfs - } || { - [ "${USER}" = 0 ] || OPTS="-u ${USER} -g $( id -g -n ${USER} )" - mount_ntfs ${OPTS} -o noatime ${DEV} ${MNT} && ADD=1 - } - __log "${DEV}:mount (ntfs)" - } - ;; - (*ext2*) - fsck.ext2 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext2)" - ;; - (*ext3*) - fsck.ext3 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext3)" - ;; - (*ext4*) - fsck.ext4 -y ${DEV} - ext4fuse ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ext4fuse - __log "${DEV}:mount (ext4)" - ;; - (*Unix\ Fast\ File*) - fsck_ufs -C -y ${DEV} - mount -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ufs)" - ;; - (*) - case $( dd < ${DEV} count=1 2> /dev/null | strings | head -1 ) in - (*EXFAT*) - mount.exfat -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-exfat - __log "${DEV}:mount (exfat)" - ;; - esac - ;; - esac - [ ${ADD} -eq 1 ] && { - ADD=0 - PROVIDER=$( mount | grep -m 1 " ${MNT} " | awk '{printf $1}' ) - __state_add ${DEV} ${PROVIDER} ${MNT} - [ "${USER}" != 0 ] && [ "${FM}" != 0 ] \ - && su - ${USER} -c "env DISPLAY=:0 ${FM} ${MNT} &" - } - ;; - - (detach) - grep -E "${PREFIX}/${1}$" ${STATE} \ - | while read DEV PROVIDER MNT - do - TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) - __state_remove ${MNT} - [ -z ${TARGET} ] && continue - umount -f ${TARGET} & - unset TARGET - __log "${DEV}:umount" - done - __log "${DEV}:detach" - [ "${REMOVEDIRS}" = YES ] && find ${MNTPREFIX} -type d -empty -maxdepth 1 -delete - ;; - -esac diff --git a/port/distfiles/automount-1.2.1/automount.conf b/port/distfiles/automount-1.2.1/automount.conf deleted file mode 100644 index 1ba5f6c..0000000 --- a/port/distfiles/automount-1.2.1/automount.conf +++ /dev/null @@ -1,7 +0,0 @@ -USERUMOUNT=YES -ATIME=NO -REMOVEDIRS=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.2.1/automount.conf.sample b/port/distfiles/automount-1.2.1/automount.conf.sample deleted file mode 100644 index a2d89cd..0000000 --- a/port/distfiles/automount-1.2.1/automount.conf.sample +++ /dev/null @@ -1,5 +0,0 @@ -USERUMOUNT=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.2.1/automount_devd.conf b/port/distfiles/automount-1.2.1/automount_devd.conf deleted file mode 100644 index 2614c98..0000000 --- a/port/distfiles/automount-1.2.1/automount_devd.conf +++ /dev/null @@ -1,14 +0,0 @@ -notify 100 { - match "system" "DEVFS"; - match "type" "CREATE"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev attach"; -}; - -notify 100 { - match "system" "DEVFS"; - match "type" "DESTROY"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev detach"; -}; - diff --git a/port/distfiles/automount-1.2.tar.gz b/port/distfiles/automount-1.2.tar.gz deleted file mode 100644 index ac7e673745eac038d620a4571d7f58275b0f0021..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3448 zcmV-;4Ttg{iwFRAZ%j`B1MOOEQ`<-q-p~FOy@D)|Mfe2>iL>5XV~e0FV{?|Agj((> zA<3YNZ29y;!Y2Oj_wY}i$ndyG!>7Je*$yO2vlOUPKYJI0s{pL@R zTCH}lzfbtAAMDqPpSe)Ie$Z$f?CW``=LQi=ucy{?Glt_AON}y=gVN zu2j~j6U=Ty@9H|HO?!(PwR(dL-+CWRypY}m|F%8XzUGVA{>6Gnn;9ot7~1xI5j z-N+4ZTxX}UhK8Z*cu^dBmr3jeQ?jNGC6Pkio$0oCMJR6eJ|4C>1$@olM+mY-N6`!UX}ELz-Bz8+w)> zEyxx=V!g#lNROMxxW3q9 zFf?eRZJ_&xXlVD(ph|mtI@An<&|5z_?di|~rNegL)HP$9^nRx|>gxSh+XNNVADGnB zPjnOA%)z#>l@5ch#XuSy(TO(f9OG;IQ19vHnXq}Jn|-!+#Ng<(Jv8;ssMj9S>1cR5 zFaUh0K~YyXI=!}jqIGwG09HwRt@TYZj@!Lnaf0|;n%|)Ycqn3+=6jiL{4j+o@JV`^N~K&`90(N&A&%K-uOaguoG<(NH^KwBW!P z9U7)?j!cbS4F+97v!M-N>mAK_33a`JA-EbD+BU41ZDAZrK$P*4uMbCtE-2IcrZyao zPECE#-=gEe8&CqAZ46~!GXH}kL?hlzx!C0G#Fu+{LEOvuM z5NR&Wl=|AMp8iVfcQkGvu%0)%p>4riy1^ZEY4}YWR!3su>?0t<te=5cHNBY(`BoK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yleXrz622q$I*0Sw}3p!KsPtl4czxJ+d;~O}U2EOHzBJMyaZldIS*I_pM9UZ=Tb+ zvh(y@NxdMZ$g=qq75Gzji+B`v>EaLR#1&^vXtB9kXyQ=%ejHs)A}2uoHIR+4$e)!g zt02+-kO8oHdae3$hyqm{;*=5Pt4>t^$|829j3baJY>i>$g0iGbh78-xkpgs96hG?o`D6YsWc>#N!2J+6o^ItW9OgTG z@17W!TGg1iUB>w53C>5}i;lGv&@E%yy$93oSHZOVAf~;0FzwxgDSKY^>%%U8!u1%q zz5Bt9rrw8hIbvjDO;7!RP0h z2o0`N^D0$Vd{UgC;32a;e5ILp*@V4+6**ZUl-73(d=@!P&rM4lN*>i;a97%!r$>{3 zpTQ<>p<8-7!P$M$_q$@dcn~IA9!&63iBg#H)V=2%AX!!xRovoSxO{{fd()K%9%_6$ za|!EDo)6WD^}%sxIA+#KbzI+#-Q1lb#Q*Bo*`@qOdEoaS;+fD+B%W&hVH>qtjf>a^ zfB#e8Z;0Q2)c0z8&vy5z)~GjjpOwG=_!?4pV1+bL`BhJ|#gm|nkNovdYvrv={?4T( z-g%U%;cqDqtp5vsxh#^v7qIcz`rmuDFMt2l*lX1HpJDyi4xW|k|Emc9dT4x0bwK7a zbYjIgZY%NyjY10Q2OP>@E?T%A!2QlpLq%3>un{q6*mSHr9QDNSMAp>|b2vEr($LZxN<#aqo%RLgbNm07vhmpZZ`2wq zzyCcrD1ZO?b!27#moJ_AgTl+zvMwm4lu}A5rIb=iDW#NBN-3q3Qc5YMlu}A5rIb=i aDW#NBN-3q3QcC$d%YOmxlflRUPyhfYn(IaY diff --git a/port/distfiles/automount-1.2/automount b/port/distfiles/automount-1.2/automount deleted file mode 100755 index b4c3ce9..0000000 --- a/port/distfiles/automount-1.2/automount +++ /dev/null @@ -1,233 +0,0 @@ -#! /bin/sh - -# Copyright (c) 2012 Slawomir Wojciech Wojtczak (vermaden) -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that following conditions are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY -# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PATH=${PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin - -__usage() { - cat << EOF -AUTOMOUNT is a devd(8) based automounter for FreeBSD. - -It supports following file systems: -UFS/FAT/exFAT/NTFS/EXT2/EXT3/EXT4 - -It needs these ports to mount NTFS/exFAT/EXT4 respectively: - o sysutils/fusefs-ntfs - o sysutils/fusefs-exfat - o sysutils/fusefs-ext4fuse - -By default it mounts/unmounts all removable media but -it is possible to set some additional options at the -/usr/local/etc/automount.conf config file. - -Below is a list of possible options with description. - -MNTPREFIX (set to /media by default) - With this options You can alter the default root - for mounting the removable media, for example to - the /mnt directory. - - example: MNTPREFIX="/media" - -ENCODING (set to en_US.ISO8859-1 by default) - Only used with FAT32 mounts, specifies which - encoding to use at the mount. - - example: ENCODING="pl_PL.ISO8859-2" - -CODEPAGE (set to cp437 by default) - Only used with FAT32 mounts, specifies which - code page to use at the mount. - - example: CODEPAGE="cp852" - -USER (unset by default) - If set to some username, the mount command will - chown(1) the mount directory with the user and - its primary user group. If used with FM option - allows to launch the specified file manager after - a successful mount. - - example: USER="vermaden" - -FM (unset by default) - If set to file manager command, the mount will - launch the specified command after successful - mount. Works only if USER parameter is also set. - - example: FM="nautilus --browser --no-desktop" - -USERUMOUNT (set to NO by default) - When set to YES it will 'chmod +s /sbin/umount' - which would allow an USER to unmount the file - system with their selected file manager. - - example: USERUMOUNT="YES" - -ATIME (set to YES by default) - When set to NO it will mount filesystems with - noatime options when possible. - - example: ATIME="NO" - -REMOVEDIRS (set to NO by default) - When set to YES it will remove empty directories - under the used ${MNTPREFIX} after device detach. - - example: REMOVEDIRS="YES" - - -EOF - exit 0 -} - -[ "${1}" = "-h" -o "${1}" = "--help" -o ${#} -eq 0 -o ${#} -eq 1 ] && __usage - -[ -f /usr/local/etc/automount.conf ] && . /usr/local/etc/automount.conf - -: ${MNTPREFIX="/media"} # mount prefix -: ${LOG="/var/log/automount.log"} # log file -: ${STATE="/var/run/automount.state"} # current state file -: ${ENCODING="en_US.ISO8859-1"} # US/Canada -: ${CODEPAGE="cp437"} # US/Canada -: ${DATEFMT="%Y-%m-%d %H:%M:%S"} # 2012-02-20 07:49:09 -: ${USERUMOUNT="NO"} # when YES add suid bit to umount(8) -: ${ATIME="YES"} # when NO mount with noatime -: ${REMOVEDIRS="NO"} # remove empty dirs under ${MNTPREFIX} -: ${USER="0"} # which user to use for popup -: ${FM="0"} # which file manager to use - -[ "${USERUMOUNT}" = YES ] && chmod u+s /sbin/umount # WHEEL group member - -__create_mount_point() { # 1=DEV - mkdir -p ${MNT} - [ "${USER}" = 0 ] || chown ${USER}:$( id -g -n ${USER} ) ${MNT} -} - -__check_already_mounted() { # 1=MNT - mount | grep " ${1} " 1> /dev/null 2> /dev/null && { - __log "${DEV}:already mounted (ntfs)" - exit 0 - } -} - -__state_add() { # 1=DEV 2=PROVIDER 3=MNT - grep -E "${3}$" ${STATE} 1> /dev/null 2> /dev/null && { - __log "${1}:duplicated '${STATE}'" - exit 0 - } - echo "${1} ${2} ${3}" >> ${STATE} -} - -__state_remove() { # 1=MNT - BSMNT=$( echo ${1} | sed 's/\//\\\//g' ) # backslash the slashes ;) - sed -i '' "/${BSMNT}\$/d" ${STATE} -} - -__log() { # @=MESSAGE - echo $( date +"${DATEFMT}" ) ${@} >> ${LOG} -} - -DEV=/dev/${1} - -case ${2} in - (attach) - ADD=0 - MNT="${MNTPREFIX}/${1}" - __check_already_mounted ${MNT} - __create_mount_point ${DEV} - [ "${ATIME}" = NO ] && OPTS="noatime" - case $( file -b -L -s ${DEV} | sed -E 's/label:\ \".*\"//g' ) in - (*FAT*) # must be before NTFS section: newfs_msdos -O NTFS -L NTFS - dd < ${DEV} count=1 2> /dev/null | strings | grep "FAT32" && { - fsck_msdosfs -y ${DEV} - mount_msdosfs -o large -D ${CODEPAGE} -L ${ENCODING} \ - -m 644 -M 755 ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (fat)" - } - ;; - (*NTFS*) # must be after FAT section: newfs_msdos -O NTFS -L NTFS - dd < ${DEV} count=1 2> /dev/null | strings | head -1 | grep "NTFS" && { - which ntfs-3g 1> /dev/null 2> /dev/null && { - ntfs-3g -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ntfs - } || { - [ "${USER}" = 0 ] || OPTS="-u ${USER} -g $( id -g -n ${USER} )" - mount_ntfs ${OPTS} -o noatime ${DEV} ${MNT} && ADD=1 - } - __log "${DEV}:mount (ntfs)" - } - ;; - (*ext2*) - fsck.ext2 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext2)" - ;; - (*ext3*) - fsck.ext3 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext3)" - ;; - (*ext4*) - fsck.ext4 -y ${DEV} - ext4fuse ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ext4fuse - __log "${DEV}:mount (ext4)" - ;; - (*Unix\ Fast\ File*) - fsck_ufs -C -y ${DEV} - mount -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ufs)" - ;; - (*) - case $( dd < ${DEV} count=1 2> /dev/null | strings | head -1 ) in - (EXFAT) - mount.exfat -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-exfat - __log "${DEV}:mount (exfat)" - ;; - esac - ;; - esac - [ ${ADD} -eq 1 ] && { - ADD=0 - PROVIDER=$( mount | grep -m 1 " ${MNT} " | awk '{printf $1}' ) - __state_add ${DEV} ${PROVIDER} ${MNT} - [ "${USER}" != 0 ] && [ "${FM}" != 0 ] \ - && su - ${USER} -c "env DISPLAY=:0 ${FM} ${MNT} &" - } - ;; - - (detach) - grep -E "${PREFIX}/${1}$" ${STATE} \ - | while read DEV PROVIDER MNT - do - TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) - __state_remove ${MNT} - [ -z ${TARGET} ] && continue - umount -f ${TARGET} & - unset TARGET - __log "${DEV}:umount" - done - __log "${DEV}:detach" - [ "${REMOVEDIRS}" = YES ] && find ${MNTPREFIX} -type d -empty -maxdepth 1 -delete - ;; - -esac diff --git a/port/distfiles/automount-1.2/automount.conf b/port/distfiles/automount-1.2/automount.conf deleted file mode 100644 index 1ba5f6c..0000000 --- a/port/distfiles/automount-1.2/automount.conf +++ /dev/null @@ -1,7 +0,0 @@ -USERUMOUNT=YES -ATIME=NO -REMOVEDIRS=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.2/automount.conf.sample b/port/distfiles/automount-1.2/automount.conf.sample deleted file mode 100644 index a2d89cd..0000000 --- a/port/distfiles/automount-1.2/automount.conf.sample +++ /dev/null @@ -1,5 +0,0 @@ -USERUMOUNT=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.2/automount_devd.conf b/port/distfiles/automount-1.2/automount_devd.conf deleted file mode 100644 index 2614c98..0000000 --- a/port/distfiles/automount-1.2/automount_devd.conf +++ /dev/null @@ -1,14 +0,0 @@ -notify 100 { - match "system" "DEVFS"; - match "type" "CREATE"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev attach"; -}; - -notify 100 { - match "system" "DEVFS"; - match "type" "DESTROY"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev detach"; -}; - diff --git a/port/distfiles/automount-1.3.1.tar.gz b/port/distfiles/automount-1.3.1.tar.gz deleted file mode 100644 index 28fe0127decc93e043fec0fad3a880ca4652dc83..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3681 zcmV-n4xaHJiwFRos%K9C1MOOCciKo2-Ov1rTI>vV#xerzWQK&C!63(+gTaeL5})y| zk1PqJjX)dhPH}bohIK*_1ep%m7esoM2|!&itW% zUusY0k$wJ`h`Hha?E5#g@wor%YW?{E`@g}?udC09qd99qD(8%2&yi@?8eZCpfCGlB}w^FO%rYqI>g?ec(74464l z6PjxK8;C;kCn*%mx6u(HfjLAbAVyQ*yYg?iDWL{BAag%*EoToM+>kt|V=Z}$b6X5v z!GTT7Gu@dJfETLYg#mLp8d4aTogD+(?}CKn6s02Dx8j*IkId9hRk*-Mb3ijQast=% z!WG%VN31tL3F&d;q^FZUJT~68M;hV!Y&3k+>uOy(I!B{M?Xht(98r7FrOt3*jCx07 zV>r^O($>+vA{yF*bEwkZosBeIC-m-}p7nds0i~n%!02iE9`y#D{y*1Jnk6-wsy?m=&U_5dYy5-6|Sd#7O{?a}#OqE*-aGDasfQn!8Dey!iR=na5dJoJyhd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BFQkU|P6q>w@iDWs4>{?p}Ou{8~C08jt`PD*s- diff --git a/port/distfiles/automount-1.3.1/automount b/port/distfiles/automount-1.3.1/automount deleted file mode 100755 index 18ecc78..0000000 --- a/port/distfiles/automount-1.3.1/automount +++ /dev/null @@ -1,253 +0,0 @@ -#! /bin/sh - -# Copyright (c) 2012 Slawomir Wojciech Wojtczak (vermaden) -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that following conditions are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY -# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PATH=${PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin - -__usage() { - cat << EOF -AUTOMOUNT is a devd(8) based automounter for FreeBSD. - -It supports following file systems: -UFS/FAT/exFAT/NTFS/EXT2/EXT3/EXT4 - -It needs these ports to mount NTFS/exFAT/EXT4 respectively: - o sysutils/fusefs-ntfs - o sysutils/fusefs-exfat - o sysutils/fusefs-ext4fuse - -By default it mounts/unmounts all removable media but -it is possible to set some additional options at the -/usr/local/etc/automount.conf config file. - -Below is a list of possible options with description. - -MNTPREFIX (set to /media by default) - With this options You can alter the default root - for mounting the removable media, for example to - the /mnt directory. - - example: MNTPREFIX="/media" - -ENCODING (set to en_US.ISO8859-1 by default) - Only used with FAT32 mounts, specifies which - encoding to use at the mount. - - example: ENCODING="pl_PL.ISO8859-2" - -CODEPAGE (set to cp437 by default) - Only used with FAT32 mounts, specifies which - code page to use at the mount. - - example: CODEPAGE="cp852" - -USER (unset by default) - If set to some username, the mount command will - chown(1) the mount directory with the user and - its primary user group. If used with FM option - allows to launch the specified file manager after - a successful mount. - - example: USER="vermaden" - -FM (unset by default) - If set to file manager command, the mount will - launch the specified command after successful - mount. Works only if USER parameter is also set. - - example: FM="nautilus --browser --no-desktop" - -USERUMOUNT (set to NO by default) - When set to YES it will 'chmod +s /sbin/umount' - which would allow an USER to unmount the file - system with their selected file manager. - - example: USERUMOUNT="YES" - -ATIME (set to YES by default) - When set to NO it will mount filesystems with - noatime options when possible. - - example: ATIME="NO" - -REMOVEDIRS (set to NO by default) - When set to YES it will remove empty directories - under the used ${MNTPREFIX} after device detach. - - example: REMOVEDIRS="YES" - -EOF - exit 0 -} - -[ "${1}" = "-h" -o "${1}" = "--help" -o ${#} -eq 0 -o ${#} -eq 1 ] && __usage - -[ -f /usr/local/etc/automount.conf ] && . /usr/local/etc/automount.conf - -: ${MNTPREFIX="/media"} # mount prefix -: ${LOG="/var/log/automount.log"} # log file -: ${STATE="/var/run/automount.state"} # current state file -: ${ENCODING="en_US.ISO8859-1"} # US/Canada -: ${CODEPAGE="cp437"} # US/Canada -: ${DATEFMT="%Y-%m-%d %H:%M:%S"} # 2012-02-20 07:49:09 -: ${USERUMOUNT="NO"} # when YES add suid bit to umount(8) -: ${ATIME="YES"} # when NO mount with noatime -: ${REMOVEDIRS="NO"} # remove empty dirs under ${MNTPREFIX} -: ${USER="0"} # which user to use for popup -: ${FM="0"} # which file manager to use - -[ "${USERUMOUNT}" = YES ] && chmod u+s /sbin/umount # WHEEL group member - -__create_mount_point() { # 1=DEV - mkdir -p ${MNT} - [ "${USER}" = 0 ] || chown ${USER}:$( id -g -n ${USER} ) ${MNT} -} - -__check_already_mounted() { # 1=MNT - mount | grep " ${1} " 1> /dev/null 2> /dev/null && { - __log "${DEV}:already mounted (ntfs)" - exit 0 - } -} - -__state_add() { # 1=DEV 2=PROVIDER 3=MNT - grep -E "${3}$" ${STATE} 1> /dev/null 2> /dev/null && { - __log "${1}:duplicated '${STATE}'" - exit 0 - } - echo "${1} ${2} ${3}" >> ${STATE} -} - -__state_remove() { # 1=MNT - BSMNT=$( echo ${1} | sed 's/\//\\\//g' ) # backslash the slashes ;) - sed -i '' "/${BSMNT}\$/d" ${STATE} -} - -__remove_dir() { # 1=TARGET - [ "${REMOVEDIRS}" = YES ] \ - && find "${1}" -type d -empty -maxdepth 1 -exec rm -r {} '+' -} - -__log() { # @=MESSAGE - echo $( date +"${DATEFMT}" ) ${@} >> ${LOG} -} - -DEV=/dev/${1} - -case ${2} in - (attach) - ADD=0 - MNT="${MNTPREFIX}/${1}" - __check_already_mounted ${MNT} - [ "${ATIME}" = NO ] && OPTS="noatime" - case $( file -b -L -s ${DEV} | sed -E 's/label:\ \".*\"//g' ) in - (*FAT*) # must be before NTFS section: newfs_msdos -O NTFS -L NTFS - __create_mount_point ${DEV} - fsck_msdosfs -y ${DEV} - mount_msdosfs -o large -D ${CODEPAGE} -L ${ENCODING} \ - -m 644 -M 755 ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (fat)" - ;; - (*NTFS*) # must be after FAT section: newfs_msdos -O NTFS -L NTFS - __create_mount_point ${DEV} - which ntfs-3g 1> /dev/null 2> /dev/null && { - ntfs-3g -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ntfs - } || { - [ "${USER}" = 0 ] || OPTS="-u ${USER} -g $( id -g -n ${USER} )" - mount_ntfs ${OPTS} -o noatime ${DEV} ${MNT} && ADD=1 - } - __log "${DEV}:mount (ntfs)" - ;; - (*ext2*) - __create_mount_point ${DEV} - fsck.ext2 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext2)" - ;; - (*ext3*) - __create_mount_point ${DEV} - fsck.ext3 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext3)" - ;; - (*ext4*) - __create_mount_point ${DEV} - fsck.ext4 -y ${DEV} - ext4fuse ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ext4fuse - __log "${DEV}:mount (ext4)" - ;; - (*Unix\ Fast\ File*) - __create_mount_point ${DEV} - fsck_ufs -C -y ${DEV} - mount -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ufs)" - ;; - (*) - case $( dd < ${DEV} count=1 2> /dev/null | strings | head -1 ) in - (*EXFAT*) - __create_mount_point ${DEV} - mount.exfat -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-exfat - __log "${DEV}:mount (exfat)" - ;; - esac - ;; - esac - [ ${ADD} -eq 1 ] && { - ADD=0 - PROVIDER=$( mount | grep -m 1 " ${MNT} " | awk '{printf $1}' ) - __state_add ${DEV} ${PROVIDER} ${MNT} - [ "${USER}" != 0 ] && [ "${FM}" != 0 ] \ - && su - ${USER} -c "env DISPLAY=:0 ${FM} ${MNT} &" - } - ;; - - (detach) - grep -E "${MNTPREFIX}/${1}$" ${STATE} \ - | while read DEV PROVIDER MNT - do - TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) - __state_remove ${MNT} - [ -z ${TARGET} ] && continue - ( # put entire umount and find/rm block into background - umount -f ${TARGET} - __remove_dir "${TARGET}" - __log "${DEV}:removed '${TARGET}'" - ) & - unset TARGET - __log "${DEV}:umount" - done - __log "${DEV}:detach" - __remove_dir "${MNTPREFIX}/${1}" - __log "${DEV}:removed '${MNTPREFIX}/${1}'" - ;; - -esac - -# camcontrol devlist -# at scbus0 target 0 lun 0 (ada0,pass0) -# at scbus4 target 0 lun 0 (pass1,da0) - -# camcontrol devlist | grep -E -o "<.*>" | tr ' ' '-' | tr -d '<>' -# INTEL-SSDSA2M160G2GC-2CV102HD -# HTC-Android-Phone-0100 - diff --git a/port/distfiles/automount-1.3.1/automount.conf b/port/distfiles/automount-1.3.1/automount.conf deleted file mode 100644 index 1ba5f6c..0000000 --- a/port/distfiles/automount-1.3.1/automount.conf +++ /dev/null @@ -1,7 +0,0 @@ -USERUMOUNT=YES -ATIME=NO -REMOVEDIRS=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.3.1/automount.conf.sample b/port/distfiles/automount-1.3.1/automount.conf.sample deleted file mode 100644 index a2d89cd..0000000 --- a/port/distfiles/automount-1.3.1/automount.conf.sample +++ /dev/null @@ -1,5 +0,0 @@ -USERUMOUNT=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.3.1/automount_devd.conf b/port/distfiles/automount-1.3.1/automount_devd.conf deleted file mode 100644 index 2614c98..0000000 --- a/port/distfiles/automount-1.3.1/automount_devd.conf +++ /dev/null @@ -1,14 +0,0 @@ -notify 100 { - match "system" "DEVFS"; - match "type" "CREATE"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev attach"; -}; - -notify 100 { - match "system" "DEVFS"; - match "type" "DESTROY"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev detach"; -}; - diff --git a/port/distfiles/automount-1.3.tar.gz b/port/distfiles/automount-1.3.tar.gz deleted file mode 100644 index 2f5a90eeadd4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i$A0bR~#jw#pYt5jWg%FX>>Jc&myPk!D@{|$)ox&+?Dp0>DeXVXS9i1`3uV~Ja3U8JK`qF zq4Xfb&#tE4+^L2$y2dg7Edm1vBQ9C_Y$KlQtt1_!PFJSZ+Qqu9&WGzqDK=ApsKyTq zmk^Eekf_eAd&gbitXapcd)Fo)QbT&bq@C|~#1sf&`)$FVe5xn)tx;7B9tl|~EYIA1 zaAMqdGnBJ zje4VbRQ~?s&yd37Dg=M!S3SxW&w(;N@^?R-jaM%D3zv>~;ZX+Yf22GS|5yBGStNn4 zVB>S~-+F#1;=j>oHR^}Y5&yNL=Vko=DZ)P;nm$k+kh#X3SuxK0ihMhxkb?d8#86(W zTDTCv{oYtZxm9ei;W22~b*vAwnH@QMztq$p|M9)(Vu_~`q-^}sVdZYL&BIAP)xwY^ zcJ(hr*4GSkJi7SW(9)ViLi=|w+EU{QIq?B /dev/null 2> /dev/null && { - __log "${DEV}:already mounted (ntfs)" - exit 0 - } -} - -__state_add() { # 1=DEV 2=PROVIDER 3=MNT - grep -E "${3}$" ${STATE} 1> /dev/null 2> /dev/null && { - __log "${1}:duplicated '${STATE}'" - exit 0 - } - echo "${1} ${2} ${3}" >> ${STATE} -} - -__state_remove() { # 1=MNT - BSMNT=$( echo ${1} | sed 's/\//\\\//g' ) # backslash the slashes ;) - sed -i '' "/${BSMNT}\$/d" ${STATE} -} - -__log() { # @=MESSAGE - echo $( date +"${DATEFMT}" ) ${@} >> ${LOG} -} - -DEV=/dev/${1} - -case ${2} in - (attach) - ADD=0 - MNT="${MNTPREFIX}/${1}" - __check_already_mounted ${MNT} - [ "${ATIME}" = NO ] && OPTS="noatime" - case $( file -b -L -s ${DEV} | sed -E 's/label:\ \".*\"//g' ) in - (*FAT*) # must be before NTFS section: newfs_msdos -O NTFS -L NTFS - __create_mount_point ${DEV} - fsck_msdosfs -y ${DEV} - mount_msdosfs -o large -D ${CODEPAGE} -L ${ENCODING} \ - -m 644 -M 755 ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (fat)" - ;; - (*NTFS*) # must be after FAT section: newfs_msdos -O NTFS -L NTFS - __create_mount_point ${DEV} - which ntfs-3g 1> /dev/null 2> /dev/null && { - ntfs-3g -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ntfs - } || { - [ "${USER}" = 0 ] || OPTS="-u ${USER} -g $( id -g -n ${USER} )" - mount_ntfs ${OPTS} -o noatime ${DEV} ${MNT} && ADD=1 - } - __log "${DEV}:mount (ntfs)" - ;; - (*ext2*) - __create_mount_point ${DEV} - fsck.ext2 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext2)" - ;; - (*ext3*) - __create_mount_point ${DEV} - fsck.ext3 -y ${DEV} - mount -t ext2fs -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ext3)" - ;; - (*ext4*) - __create_mount_point ${DEV} - fsck.ext4 -y ${DEV} - ext4fuse ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-ext4fuse - __log "${DEV}:mount (ext4)" - ;; - (*Unix\ Fast\ File*) - __create_mount_point ${DEV} - fsck_ufs -C -y ${DEV} - mount -o ${OPTS} ${DEV} ${MNT} && ADD=1 - __log "${DEV}:mount (ufs)" - ;; - (*) - case $( dd < ${DEV} count=1 2> /dev/null | strings | head -1 ) in - (*EXFAT*) - __create_mount_point ${DEV} - mount.exfat -o ${OPTS} ${DEV} ${MNT} && ADD=1 # sysutils/fusefs-exfat - __log "${DEV}:mount (exfat)" - ;; - esac - ;; - esac - [ ${ADD} -eq 1 ] && { - ADD=0 - PROVIDER=$( mount | grep -m 1 " ${MNT} " | awk '{printf $1}' ) - __state_add ${DEV} ${PROVIDER} ${MNT} - [ "${USER}" != 0 ] && [ "${FM}" != 0 ] \ - && su - ${USER} -c "env DISPLAY=:0 ${FM} ${MNT} &" - } - ;; - - (detach) - grep -E "${PREFIX}/${1}$" ${STATE} \ - | while read DEV PROVIDER MNT - do - TARGET=$( mount | grep -E "^${PROVIDER} " | awk '{print $3}' ) - __state_remove ${MNT} - [ -z ${TARGET} ] && continue - ( # put entire umount and find/rm block into background - umount -f ${TARGET} - [ "${REMOVEDIRS}" = YES ] && find ${TARGET} -type d -empty -maxdepth 1 -exec rm -r {} '+' - ) & - unset TARGET - __log "${DEV}:umount" - done - __log "${DEV}:detach" - ;; - -esac diff --git a/port/distfiles/automount-1.3/automount.conf b/port/distfiles/automount-1.3/automount.conf deleted file mode 100644 index 1ba5f6c..0000000 --- a/port/distfiles/automount-1.3/automount.conf +++ /dev/null @@ -1,7 +0,0 @@ -USERUMOUNT=YES -ATIME=NO -REMOVEDIRS=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.3/automount.conf.sample b/port/distfiles/automount-1.3/automount.conf.sample deleted file mode 100644 index a2d89cd..0000000 --- a/port/distfiles/automount-1.3/automount.conf.sample +++ /dev/null @@ -1,5 +0,0 @@ -USERUMOUNT=YES -FM="nautilus --browser --no-desktop" -USER=vermaden -ENCODING=pl_PL.ISO8859-2 -CODEPAGE=cp852 diff --git a/port/distfiles/automount-1.3/automount_devd.conf b/port/distfiles/automount-1.3/automount_devd.conf deleted file mode 100644 index 2614c98..0000000 --- a/port/distfiles/automount-1.3/automount_devd.conf +++ /dev/null @@ -1,14 +0,0 @@ -notify 100 { - match "system" "DEVFS"; - match "type" "CREATE"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev attach"; -}; - -notify 100 { - match "system" "DEVFS"; - match "type" "DESTROY"; - match "cdev" "(da|mmcsd)[0-9]+"; - action "/usr/local/sbin/automount $cdev detach"; -}; - diff --git a/port/sysutils/automount.shar b/port/sysutils/automount.shar deleted file mode 100644 index 72e4be9..0000000 --- a/port/sysutils/automount.shar +++ /dev/null @@ -1,81 +0,0 @@ -# This is a shell archive. Save it in a file, remove anything before -# this line, and then unpack it by entering "sh file". Note, it may -# create directories; files and directories will be owned by you and -# have default permissions. -# -# This archive contains: -# -# automount -# automount/Makefile -# automount/distinfo -# automount/pkg-install -# automount/pkg-descr -# -echo c - automount -mkdir -p automount > /dev/null 2>&1 -echo x - automount/Makefile -sed 's/^X//' >automount/Makefile << 'a684d750ccdf9f4d6ffa6a1936b8d432' -X# New ports collection makefile for: automount -X# Date created: 28 February 2012 -X# Whom: vermaden -X# -X# $FreeBSD$ -X# -X -XPORTNAME= automount -XPORTVERSION= 1.3.1 -XCATEGORIES= sysutils -XMASTER_SITES= https://github.com/vermaden/automount/port/distfiles/ -X -XMAINTAINER= vermaden@interia.pl -XCOMMENT= FreeBSD's devd(8) based automount sollution -X -XLICENSE= BSD -X -XPLIST_FILES= sbin/automount etc/devd/automount_devd.conf etc/automount.conf.sample -X -XNO_BUILD= yes -X -Xdo-install: -X ${INSTALL_SCRIPT} ${WRKSRC}/automount ${PREFIX}/sbin -X ${INSTALL_DATA} ${WRKSRC}/automount_devd.conf ${PREFIX}/etc/devd/automount_devd.conf -X ${INSTALL_DATA} ${WRKSRC}/automount.conf.sample ${PREFIX}/etc/automount.conf.sample -X ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -X -X.include -a684d750ccdf9f4d6ffa6a1936b8d432 -echo x - automount/distinfo -sed 's/^X//' >automount/distinfo << 'f9168fc754e2bffcb12d5eb7f25848ec' -XSHA256 (automount-1.3.1.tar.gz) = f007e31bf3b3f35750909197ecc9c7fd7f2159cc82127eaeca1c145accc16220 -XSIZE (automount-1.3.1.tar.gz) = 3530 -f9168fc754e2bffcb12d5eb7f25848ec -echo x - automount/pkg-install -sed 's/^X//' >automount/pkg-install << '251e9ad33f5651c05228156a36207e92' -X#!/bin/sh -X -Xcase ${2} in -X (POST-INSTALL) -X /etc/rc.d/devd restart -X echo -X echo -X echo "Check /usr/local/sbin/automount --help for available options." -X echo -X echo -X ;; -X (PRE-INSTALL) -X : -X ;; -Xesac -X -251e9ad33f5651c05228156a36207e92 -echo x - automount/pkg-descr -sed 's/^X//' >automount/pkg-descr << 'beeed37ba9f50e251d50bf9bd7dcb079' -Xautomount is a devd(8) based automounter for FreeBSD. -X -XIt supports most popular file systems: -XNTFS/MSDOS/exFAT/EXT2/EXT3/EXT4/UFS -X -XWWW: https://github.com/vermaden/automount/ -beeed37ba9f50e251d50bf9bd7dcb079 -exit - diff --git a/port/sysutils/automount/distinfo b/port/sysutils/automount/distinfo deleted file mode 100644 index bd94312..0000000 --- a/port/sysutils/automount/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (automount-1.3.1.tar.gz) = a783f68b6c9b1dcb205f08f7285dcde8403e7f5ca5d9a582f3e9ae195ac4fc95 -SIZE (automount-1.3.1.tar.gz) = 3681 diff --git a/port/sysutils/automount/Makefile b/sysutils/automount/Makefile similarity index 90% rename from port/sysutils/automount/Makefile rename to sysutils/automount/Makefile index 5b4917b..b5f1d35 100644 --- a/port/sysutils/automount/Makefile +++ b/sysutils/automount/Makefile @@ -8,7 +8,7 @@ PORTNAME= automount PORTVERSION= 1.3.1 CATEGORIES= sysutils -MASTER_SITES= https://github.com/vermaden/automount/tree/master/port/distfiles/ +MASTER_SITES= https://github.com/vermaden/automount/ MAINTAINER= vermaden@interia.pl COMMENT= FreeBSD's devd(8) based automount sollution diff --git a/port/sysutils/automount/pkg-descr b/sysutils/automount/pkg-descr similarity index 100% rename from port/sysutils/automount/pkg-descr rename to sysutils/automount/pkg-descr diff --git a/port/sysutils/automount/pkg-install b/sysutils/automount/pkg-install similarity index 100% rename from port/sysutils/automount/pkg-install rename to sysutils/automount/pkg-install