mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
utility for batch modification of LJ permissions or LJ restoring
This commit is contained in:
parent
445832b421
commit
03ff430e8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=137691
@ -214,6 +214,7 @@
|
||||
SUBDIR += linux-sunbird
|
||||
SUBDIR += linuxpluginwrapper
|
||||
SUBDIR += ljdeps
|
||||
SUBDIR += ljpms
|
||||
SUBDIR += ljsm
|
||||
SUBDIR += logtools
|
||||
SUBDIR += lws
|
||||
|
35
www/ljpms/Makefile
Normal file
35
www/ljpms/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# New ports collection makefile for: ljpms
|
||||
# Date created: 12 Aug 2004
|
||||
# Whom: ache
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ljpms
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= www perl5
|
||||
MASTER_SITES= http://ryzh.kiev.ua/ljsm/
|
||||
DISTFILES= ljpms-1_2.zip
|
||||
|
||||
MAINTAINER= ache@freebsd.org
|
||||
COMMENT= Livejournal.com postings mass-restore and permissions utility
|
||||
|
||||
RUN_DEPENDS= ${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \
|
||||
${SITE_PERL}/SOAP/Lite.pm:${PORTSDIR}/net/p5-SOAP-Lite
|
||||
|
||||
PLIST_FILES= bin/ljpms
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_ZIP= yes
|
||||
USE_PERL5_RUN= yes
|
||||
USE_REINPLACE= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
EXTRACT_BEFORE_ARGS= -qoaa
|
||||
|
||||
do-configure:
|
||||
@${REINPLACE_CMD} -e 's|^#!perl|#!${PERL}|' ${WRKSRC}/ljpms.pl
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && ${INSTALL_SCRIPT} ljpms.pl ${PREFIX}/bin/ljpms
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/ljpms/distinfo
Normal file
2
www/ljpms/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (ljpms-1_2.zip) = 9f91f30667e2cbbf4db8e82fd0a7a111
|
||||
SIZE (ljpms-1_2.zip) = 3049
|
17
www/ljpms/files/patch-ljpms.pl
Normal file
17
www/ljpms/files/patch-ljpms.pl
Normal file
@ -0,0 +1,17 @@
|
||||
--- ljpms.pl.orig Mon Jan 3 15:19:08 2005
|
||||
+++ ljpms.pl Sat Jun 18 21:59:45 2005
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!perl
|
||||
+#!/usr/local/bin/perl
|
||||
|
||||
# CVS: $Id: ljpms.pl,v 2.5 2005/01/03 12:19:08 sasha Exp $
|
||||
# Author: Alexander Nikolaev <sasha_nikolaev@yahoo.com>
|
||||
@@ -84,7 +84,7 @@
|
||||
exit(usage('invalidmode')) unless ($modes{$mode} || $mode =~ /^\d+$/);
|
||||
exit (usage('noexport')) unless -d LOCALDIR . "$suser/export";
|
||||
|
||||
-if ($suser ne $user) { # post to someone else's journal
|
||||
+if ($suser ne $user || $mode eq 'restore') { # post to someone else's journal
|
||||
exit usage('invalidmode') if ($mode eq 'delete');
|
||||
exit usage('invalidmode') if ($mode =~ /^\d+$/);
|
||||
print "posting ${suser}'s backdated entries to ${user}'s journal\n";
|
4
www/ljpms/pkg-descr
Normal file
4
www/ljpms/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Livejournal.com utility to mass restore user postings or mass change
|
||||
permissions.
|
||||
|
||||
WWW: http://ryzh.kiev.ua/ljsm/ljpms.html
|
Loading…
Reference in New Issue
Block a user