Package Details: ldm 0.7-2

Git Clone URL: (read-only, click to copy)
Package Base: ldm
Description: A lightweight device mounter
Upstream URL:
Licenses: MIT
Conflicts: ldm-git
Provides: ldm
Submitter: Rolinh
Maintainer: TheLemonMan (dequis)
Last Packager: dequis
Votes: 53
Popularity: 0.000000
First Submitted: 2012-06-15 20:32 (UTC)
Last Updated: 2017-09-24 05:55 (UTC)

Latest Comments

meat_patty commented on 2021-08-15 06:04 (UTC)

Here's an updated PKGBUILD that bumps the version up to 0.8 and overrides SBINDIR to point to /usr/bin:

And an updated .SRCINFO:

tjaart commented on 2017-06-14 20:02 (UTC)

We could add 'aarch64' to the arch array. I have just installed on a Odroid C2, and it's working fine.

Haron_Prime commented on 2017-06-14 13:26 (UTC)

Does not compile with perl 5.26.0 The solution is to add a line export PATH=$PATH:/usr/bin/core_perl to the build() build() { export PATH=$PATH:/usr/bin/core_perl cd "$srcdir/$pkgname-$pkgver" make } Arch Linux 4.11.4-1-zen x86_64

nrq commented on 2016-03-12 10:40 (UTC) (edited on 2016-03-12 10:44 (UTC) by nrq)

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 (UTC)

.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 (UTC)

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 = 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:: - sha256sums = 14484ac229f8d6558f007ec1c139e5ada2d3c60230a55f99f939022cfd493c9b + source = ldm-0.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="" license=('MIT') depends=('udev' 'glib2') provides=('ldm') -conflicts=('ldm-git') install=$pkgname.install source=("$pkgname-$pkgver.tar.gz"::"$pkgname/archive/v$pkgver.tar.gz") sha256sums=('7e5e2b406bc627d4df7676b470ead6af75739ce96dc283e25467bb123b2717d9') --

benoliver999 commented on 2015-04-16 17:21 (UTC)

UPDATE: BASE_MOUNTPOINT is what worked for me rather than LDM_MOUNTPOINT

benoliver999 commented on 2015-04-16 16:21 (UTC)

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 (UTC)

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

pejobo commented on 2015-04-04 11:19 (UTC)

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/ $BASE_MOUNTPOINT ExecStart=/usr/bin/ldm -u $USER_UID -g $USER_GID -p $BASE_MOUNTPOINT .. with /etc/ #!/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 (UTC)

Updated PKGBUILD: * 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 (UTC)

Here's a PKGBUILD that is slightly more modern

addamm_aur commented on 2014-01-03 15:06 (UTC)

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! :)

commented on 2013-06-19 07:46 (UTC)

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 (UTC)

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 (UTC)

@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 (UTC)

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)

commented on 2012-12-10 09:47 (UTC)

@th0th It's fine compatible with systemd. You just have to make your own ldm.service file but that's quite easy. ( ) Mine is (replace -u 100 -g 1000 with your values)

Rolinh commented on 2012-12-03 12:49 (UTC)

Please, don't mark it as outdated when it is not. The only official stable release to date is version 0.3 (check

th0th commented on 2012-11-04 23:18 (UTC)

Are you planning to make ldm compatible with systemd?

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

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

Rolinh commented on 2012-08-21 14:31 (UTC)

A 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:

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

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