Package Details: ldm 0.7-2

Git Clone URL: https://aur.archlinux.org/ldm.git (read-only)
Package Base: ldm
Description: A lightweight device mounter
Upstream URL: https://github.com/LemonBoy/ldm
Licenses: MIT
Conflicts: ldm-git
Provides: ldm
Submitter: Rolinh
Maintainer: TheLemonMan
Last Packager: TheLemonMan
Votes: 49
Popularity: 1.009340
First Submitted: 2012-06-15 20:32
Last Updated: 2016-02-21 14:01

Latest Comments

nrq commented on 2016-03-12 10:40

I guess some people doesn't have /usr/bin/core_perl/ in their PATH and this throws an error message about pod2man command not found, aborting the build process.

I don't know if there's a better way to do this but I got it working by adding a check inside build() before cd and make:

build() {
_folder=/usr/bin/core_perl/
echo " $PATH " | sed 's/:/ /g' | grep " $_folder " > /dev/null
[ $? -ne 0 ] && [ -d $_folder ] && [ -x $_folder ] && PATH=$_folder:$PATH
export PATH

cd "$srcdir/$pkgname-$pkgver"
make
}

loonies commented on 2016-02-14 10:08

.SRCINFO was not generated for the version 0.7, hence AUR showing 0.6.2-2 although PKGBUILD is updated to 0.7

MaoCPU commented on 2016-01-20 18:35

AUR still shows version 0.6.2-2 although the source from 0.6.3 is used. Also I couldn't find the package ldm-git any more. I suggest the following patch:

diff --git a/.SRCINFO b/.SRCINFO
index bb5009c..fa1871c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
pkgbase = ldm
pkgdesc = A lightweight device mounter
- pkgver = 0.6.2
- pkgrel = 2
+ pkgver = 0.6.3
+ pkgrel = 3
url = https://github.com/LemonBoy/ldm
install = ldm.install
arch = i686
@@ -12,8 +14,8 @@ pkgbase = ldm
depends = glib2
provides = ldm
conflicts = ldm-git
- source = ldm-0.6.2.tar.gz::http://github.com/lemonboy/ldm/archive/v0.6.2.tar.gz
- sha256sums = 14484ac229f8d6558f007ec1c139e5ada2d3c60230a55f99f939022cfd493c9b
+ source = ldm-0.6.3.tar.gz::http://github.com/lemonboy/ldm/archive/v0.6.3.tar.gz
+ sha256sums = 7e5e2b406bc627d4df7676b470ead6af75739ce96dc283e25467bb123b2717d9

pkgname = ldm

diff --git a/PKGBUILD b/PKGBUILD
index 09ef7b7..c4c319c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,13 @@

pkgname=ldm
pkgver=0.6.3
-pkgrel=2
+pkgrel=3
pkgdesc="A lightweight device mounter"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/LemonBoy/ldm"
license=('MIT')
depends=('udev' 'glib2')
provides=('ldm')
-conflicts=('ldm-git')
install=$pkgname.install
source=("$pkgname-$pkgver.tar.gz"::"http://github.com/lemonboy/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('7e5e2b406bc627d4df7676b470ead6af75739ce96dc283e25467bb123b2717d9')
--

benoliver999 commented on 2015-04-16 17:21

UPDATE:

BASE_MOUNTPOINT is what worked for me rather than LDM_MOUNTPOINT

benoliver999 commented on 2015-04-16 16:21

I get this:

ldm[342]: The path (null) doesn't name a folder or doesn't exist!

When I try to start via systemd.

My /etc/ldm.conf looks like this:

USER_GID = 100
USER_UID = 1000
LDM_MOUNTPOINT = /mnt

Any idea what could be causing the issue? It was working fine until the recent update.


pejobo commented on 2015-04-14 11:29

It's working now (v0.6), and armv7h is also included in arch). Thumbs up!

pejobo commented on 2015-04-04 11:19

I installed yesterday from tar (on raspberry pi 2, so had to add armv7h in arch list). It's working like a charm, but it's version 0.4.3. Is the tarball outdated? Didn't try ldm-git by now.

I extended the ldm.service file with a prestart script so that after a power failure orphaned mount directories are cleared on reboot (I use the pi with a local usb drive for media files and tv recordings, so mount points should be 'stable'):

..
ExecStartPre=/etc/cleanup-mount-dir.sh $BASE_MOUNTPOINT
ExecStart=/usr/bin/ldm -u $USER_UID -g $USER_GID -p $BASE_MOUNTPOINT
..

with /etc/cleanup-mount-dir.sh

#!/usr/bin/bash
# try to delete orphaned mount directories (e.g. after crash or power off)
dir=$1
if [ "$dir" = "" ]; then
dir=/mnt
fi
echo $0 - cleaning up mount directory $dir
for f in $dir/* ; do rmdir --ignore-fail-on-non-empty $f; done
exit 0

al3hex commented on 2014-04-14 14:55

Updated PKGBUILD: http://pastie.org/9079635

* Remove provides array
* Properly quote all variables
* Remove export LDFLAGS="" (Fixed by GH issue #17)
* Set a meaningful name to the source tarball
* Fix .install file

EvanPurkhiser commented on 2014-03-03 06:44

Here's a PKGBUILD that is slightly more modern https://gist.github.com/EvanPurkhiser/9319612

addamm_aur commented on 2014-01-03 15:06

Could be nice that ldm doesn't mount a device into another mountpoint if the *same* device is still pugged-in when system reboots or shutdown/starts!

Example:
- When 1st plugged-in my external USB HDD, ldm created this muntpoint "/mnt/44B829F3B829E460/";
- Then I rebooted Arch with the external USB HDD still plugged-in;
- When the system came up, I saw that the ldm created another new mountpoint for the same device and mounted it at "/mnt/44B829F3B829E460_/" (note the underscore added!!!) and the previous mountpoint ("/mnt/44B829F3B829E460/") still exists but it's empty.

Thanks! :)

Anonymous comment on 2013-06-19 07:46

Unfortunately, ldm does not work out of the box when installed via the AUR. The install script does not create the /media directory so ldm shows the following error when trying to mount an USB stick:

Jun 19 09:38:36 arakis ldm[27022]: Error while mounting /dev/sdc1 (No such file or directory)

Could someone please add the relevant mkdir -p /media line to the PKGBUILD? Thanks!

z3bra commented on 2013-04-03 11:34

Because the (few) customizables options are set in the ldm.c:
#define MOUNT_PATH "/media/"
#define CALLBACK_PATH NULL /* script to be executed after a device is mounted */
#define OPT_FMT "uid=%i,gid=%i"
#define MAX_DEVICES 20

Rolinh commented on 2013-03-30 15:24

@z3bra: I'm not sure why you would want to edit ldm.c (as this is the unique source code file)? Do you have an example? For blacklisting you need to edit your fstab and set the noauto option.

z3bra commented on 2013-03-26 16:28

That's such a nice program ! Anyway, I see on github that the few tweak the user can make, are done by editing source code (ldm.c / blacklist.h).
Could the PKGBUILD ask to editing before compilation ? (Like for dwm or evilvte)

Anonymous comment on 2012-12-10 09:47

@th0th

It's fine compatible with systemd. You just have to make your own ldm.service file but that's quite easy. ( https://wiki.archlinux.org/index.php/Systemd#Writing_custom_.service_files )

Mine is http://paste.archlinux-br.org/2074
(replace -u 100 -g 1000 with your values)

Rolinh commented on 2012-12-03 12:49

Please, don't mark it as outdated when it is not. The only official stable release to date is version 0.3 (check https://github.com/LemonBoy/ldm/tags)

th0th commented on 2012-11-04 23:18

Are you planning to make ldm compatible with systemd?

Alister.Hood commented on 2012-08-23 04:43

Not /usr/share/man.
/usr/share/mad
The mad markdown reader uses this directory.
Of course the file would need to be renamed to ldm.md
:)

Rolinh commented on 2012-08-21 14:31

A README.md file should not go into /usr/share/man.
I could put it in /usr/share/doc/ldm.
However, it would be best that the author upstream converts it to a manpage.
You should suggest it in the discussion on the forums:
http://bbs.archlinux.org/viewtopic.php?id=125918

Rolinh commented on 2012-08-21 14:30

I README.md file should not go into /usr/share/mad.
I could put it in /usr/share/doc/ldm.
However, it would be best that the author upstream converts it to a manpage.
You should suggest it in the discussion on the forums:
http://bbs.archlinux.org/viewtopic.php?id=125918

Alister.Hood commented on 2012-08-21 14:25

Hi,
It might be good to install the markdown file README.md in /usr/share/mad, for people with a markdown reader. Or maybe it would be better to convert it to a man page.