Bug 179700 - [PATCH] misc/lxde-common: Add license, docs, take maintainership
Summary: [PATCH] misc/lxde-common: Add license, docs, take maintainership
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-19 04:30 UTC by nemysis
Modified: 2013-06-22 12:51 UTC (History)
1 user (show)

See Also:


Attachments
lxde-common-0.5.5_4.patch (2.90 KB, patch)
2013-06-19 04:30 UTC, nemysis
no flags Details | Diff
lxde-common.diff (17.59 KB, patch)
2013-06-22 00:21 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-19 04:30:00 UTC
- Take maintainership
- Shorten header
- Add license (GPLv2)
- Add docs
- Trim WWW
- Trim pkg-plist

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)

How-To-Repeat: 
Build log

https://redports.org/buildarchive/20130619025501-33458/
Comment 1 William Grzybowski freebsd_committer freebsd_triage 2013-06-21 14:01:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wg

I'll take it.
Comment 2 William Grzybowski 2013-06-21 14:14:44 UTC
This port installs .conf files blindly. Shouldn't you make sure the
file has not changed before replacing?

--
William Grzybowski
------------------------------------------
Curitiba/PR - Brasil
Comment 3 nemysis 2013-06-22 00:21:15 UTC
On Fri, 21 Jun 2013 10:14:44 -0300
William Grzybowski <william88@gmail.com> wrote:

> This port installs .conf files blindly. Shouldn't you make sure the
> file has not changed before replacing?
> 
> --
> William Grzybowski
> ------------------------------------------
> Curitiba/PR - Brasil

Now are all test clean, have not try on RedPorts but knew is good.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-06-22 12:45:12 UTC
Author: wg
Date: Sat Jun 22 11:44:56 2013
New Revision: 321566
URL: http://svnweb.freebsd.org/changeset/ports/321566

Log:
  misc/lxde-common: NLS and config fixes
  
  - Trim Makefile header
  - Add LICENSE (GPLv2)
  - Install docs
  - Preserve original *.conf files
  - Pass maintainership to submitter
  
  PR:		ports/179700
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/misc/lxde-common/Makefile
  head/misc/lxde-common/files/patch-Makefile-am
  head/misc/lxde-common/files/patch-Makefile-in
  head/misc/lxde-common/files/patch-configure
  head/misc/lxde-common/files/patch-configure-ac
  head/misc/lxde-common/pkg-descr
  head/misc/lxde-common/pkg-plist

Modified: head/misc/lxde-common/Makefile
==============================================================================
--- head/misc/lxde-common/Makefile	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/Makefile	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,22 +1,19 @@
-# New ports collection makefile for:   lxde-common
-# Date created:                2009/02/03
-# Whom:                        sahne
-#
+# Created by: sahne
 # $FreeBSD$
-#
 
 PORTNAME=	lxde-common
 PORTVERSION=	0.5.5
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	misc
-MASTER_SITES=	SF/lxde/${PORTNAME}%20%28default%20config%29/LXDE%20Common%20${PORTVERSION}
+MASTER_SITES=	SF/lxde/${PORTNAME}%20%28default%20config%29/LXDE%20Common%20${PORTVERSION}/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	nemysis@gmx.ch
 COMMENT=	LXDE Common files
 
-USE_GNOME=	gtk20
-USE_GMAKE=	yes
+LICENSE=	GPLv2
+
 USES=		iconv
+USE_GNOME=	gtk20
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		CPPFLAGS="-I${LOCALBASE}/include" \
@@ -24,12 +21,32 @@ CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		GMSGFMT="${LOCALBASE}/bin/msgfmt" \
 		--with-xsession-path=${PREFIX}/share/xsessions \
 		--with-xdg-path=${PREFIX}/share/applications
+USE_GMAKE=	yes
 
 DATADIR=	${PREFIX}/share/lxde
 INSTALLS_ICONS=	YES
 
-MAN1=	startlxde.1\
-	lxde-logout.1 \
-	openbox-lxde.1
+MAN1=		startlxde.1 lxde-logout.1 openbox-lxde.1
+
+PORTDOCS=	AUTHORS README
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf.sample
+.if ! exists(${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf)
+	${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf
+.endif
+.if ! exists(${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf)
+	${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>

Modified: head/misc/lxde-common/files/patch-Makefile-am
==============================================================================
--- head/misc/lxde-common/files/patch-Makefile-am	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/files/patch-Makefile-am	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,5 +1,5 @@
---- Makefile.am.o	2012-03-09 15:28:13.000000000 -0500
-+++ Makefile.am	2012-03-09 15:29:20.000000000 -0500
+--- Makefile.am.orig	2011-07-29 16:04:03.000000000 +0200
++++ Makefile.am	2013-06-21 19:58:35.000000000 +0200
 @@ -6,6 +6,9 @@
  xsessiondir=$(xsesspath)
  xsession_DATA = LXDE.desktop

Modified: head/misc/lxde-common/files/patch-Makefile-in
==============================================================================
--- head/misc/lxde-common/files/patch-Makefile-in	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/files/patch-Makefile-in	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,5 +1,5 @@
---- Makefile.in.o	2012-03-09 15:48:58.000000000 -0500
-+++ Makefile.in	2012-03-09 15:51:53.000000000 -0500
+--- Makefile.in.orig	2011-07-29 16:12:19.000000000 +0200
++++ Makefile.in	2013-06-21 21:33:42.000000000 +0200
 @@ -79,7 +79,7 @@
  	"$(DESTDIR)$(imagesdir)" "$(DESTDIR)$(lxpaneldir)" \
  	"$(DESTDIR)$(lxpanel_paneldir)" "$(DESTDIR)$(openboxdir)" \
@@ -18,7 +18,7 @@
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
    distclean-recursive maintainer-clean-recursive
  AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
-@@ -214,12 +214,15 @@
+@@ -214,14 +214,17 @@
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
  xsesspath = @xsesspath@
@@ -32,9 +32,22 @@
 +xdgdir = $(xdgpath)
 +xdg_DATA = lxde-logout.desktop
  defaultsdir = $(sysconfdir)/xdg/lxsession/LXDE
- defaults_DATA = autostart desktop.conf
+-defaults_DATA = autostart desktop.conf
++defaults_DATA = autostart
  wallpapersdir = $(datadir)/lxde/wallpapers
-@@ -508,6 +511,26 @@
+ wallpapers_DATA = \
+ 	wallpapers/lxde_blue.jpg \
+@@ -243,8 +246,7 @@
+ 	openbox/menu.xml
+ 
+ pcmanfmdir = $(sysconfdir)/xdg/pcmanfm/LXDE
+-pcmanfm_DATA = \
+-	pcmanfm/pcmanfm.conf
++pcmanfm_DATA =
+ 
+ EXTRA_DIST = \
+ 	autostart \
+@@ -508,6 +510,26 @@
  	test -n "$$files" || exit 0; \
  	echo " ( cd '$(DESTDIR)$(xsessiondir)' && rm -f" $$files ")"; \
  	cd "$(DESTDIR)$(xsessiondir)" && rm -f $$files
@@ -61,7 +74,7 @@
  
  # This directory's subdirectories are mostly independent; you can cd
  # into them and run `make' without going through this Makefile.
-@@ -824,7 +847,7 @@
+@@ -824,7 +846,7 @@
  all-am: Makefile $(SCRIPTS) $(DATA)
  installdirs: installdirs-recursive
  installdirs-am:
@@ -70,7 +83,7 @@
  	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  	done
  install: install-recursive
-@@ -877,7 +900,7 @@
+@@ -877,7 +899,7 @@
  install-data-am: install-defaultsDATA install-imagesDATA \
  	install-lxpanelDATA install-lxpanel_panelDATA \
  	install-openboxDATA install-pcmanfmDATA install-wallpapersDATA \
@@ -79,7 +92,7 @@
  
  install-dvi: install-dvi-recursive
  
-@@ -927,7 +950,7 @@
+@@ -927,7 +949,7 @@
  	uninstall-imagesDATA uninstall-lxpanelDATA \
  	uninstall-lxpanel_panelDATA uninstall-openboxDATA \
  	uninstall-pcmanfmDATA uninstall-wallpapersDATA \
@@ -88,7 +101,7 @@
  
  .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  	install-am install-strip tags-recursive
-@@ -945,7 +968,7 @@
+@@ -945,7 +967,7 @@
  	install-info-am install-lxpanelDATA install-lxpanel_panelDATA \
  	install-man install-openboxDATA install-pcmanfmDATA \
  	install-pdf install-pdf-am install-ps install-ps-am \
@@ -97,7 +110,7 @@
  	installcheck installcheck-am installdirs installdirs-am \
  	maintainer-clean maintainer-clean-generic mostlyclean \
  	mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
-@@ -953,7 +976,7 @@
+@@ -953,7 +975,7 @@
  	uninstall-defaultsDATA uninstall-imagesDATA \
  	uninstall-lxpanelDATA uninstall-lxpanel_panelDATA \
  	uninstall-openboxDATA uninstall-pcmanfmDATA \

Modified: head/misc/lxde-common/files/patch-configure
==============================================================================
--- head/misc/lxde-common/files/patch-configure	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/files/patch-configure	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,5 +1,5 @@
---- configure.orig	2011-07-29 10:12:19.000000000 -0400
-+++ configure	2012-03-09 16:08:37.000000000 -0500
+--- configure.orig	2011-07-29 16:12:19.000000000 +0200
++++ configure	2013-06-21 20:48:19.000000000 +0200
 @@ -568,6 +568,7 @@
  XMLCATALOG
  XML_CATALOG_FILE

Modified: head/misc/lxde-common/files/patch-configure-ac
==============================================================================
--- head/misc/lxde-common/files/patch-configure-ac	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/files/patch-configure-ac	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,5 +1,5 @@
---- configure.ac.orig	2011-07-29 10:04:03.000000000 -0400
-+++ configure.ac	2012-03-09 16:09:36.000000000 -0500
+--- configure.ac.orig	2011-07-29 16:04:03.000000000 +0200
++++ configure.ac	2013-06-21 21:11:18.000000000 +0200
 @@ -23,6 +23,15 @@
          [xsesspath="\${datarootdir}/xsessions"])
  AC_SUBST(xsesspath)

Modified: head/misc/lxde-common/pkg-descr
==============================================================================
--- head/misc/lxde-common/pkg-descr	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/pkg-descr	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,3 +1,3 @@
 LXDE Common files including startup and logout scripts.
 
-WWW:	http://lxde.org/
+WWW: http://lxde.org/

Modified: head/misc/lxde-common/pkg-plist
==============================================================================
--- head/misc/lxde-common/pkg-plist	Sat Jun 22 11:14:34 2013	(r321565)
+++ head/misc/lxde-common/pkg-plist	Sat Jun 22 11:44:56 2013	(r321566)
@@ -1,9 +1,13 @@
 bin/lxde-logout
 bin/openbox-lxde
 bin/startlxde
-etc/xdg/pcmanfm/LXDE/pcmanfm.conf
 etc/xdg/lxsession/LXDE/autostart
-etc/xdg/lxsession/LXDE/desktop.conf
+@unexec if cmp -s %D/etc/xdg/lxsession/LXDE/desktop.conf %D/etc/xdg/lxsession/LXDE/desktop.conf.sample; then rm -f %D/etc/xdg/lxsession/LXDE/desktop.conf; fi
+etc/xdg/lxsession/LXDE/desktop.conf.sample
+@exec if [ ! -f %D/etc/xdg/lxsession/LXDE/desktop.conf ] ; then cp -p %D/%F %B/desktop.conf; fi
+@unexec if cmp -s %D/etc/xdg/pcmanfm/LXDE/pcmanfm.conf %D/etc/xdg/pcmanfm/LXDE/pcmanfm.conf.sample; then rm -f %D/etc/xdg/pcmanfm/LXDE/pcmanfm.conf; fi
+etc/xdg/pcmanfm/LXDE/pcmanfm.conf.sample
+@exec if [ ! -f %D/etc/xdg/pcmanfm/LXDE/pcmanfm.conf ] ; then cp -p %D/%F %B/pcmanfm.conf; fi
 share/applications/lxde-logout.desktop
 share/lxde/images/logout-banner.png
 share/lxde/images/lxde-icon.png
@@ -15,11 +19,7 @@ share/lxde/wallpapers/lxde_red.jpg
 share/lxpanel/profile/LXDE/config
 share/lxpanel/profile/LXDE/panels/panel
 share/xsessions/LXDE.desktop
-@dirrm etc/xdg/lxsession/LXDE
-@dirrm etc/xdg/lxsession
-@dirrmtry etc/xdg/pcmanfm/LXDE
-@dirrmtry etc/xdg/pcmanfm
-@dirrmtry share/applications
+@dirrmtry share/xsessions
 @dirrmtry share/lxpanel/profile/LXDE/panels
 @dirrmtry share/lxpanel/profile/LXDE
 @dirrmtry share/lxpanel/profile
@@ -28,5 +28,8 @@ share/xsessions/LXDE.desktop
 @dirrm share/lxde/openbox
 @dirrm share/lxde/images
 @dirrm share/lxde
-@dirrmtry share/xsessions
-@dirrmtry etc/xdg
+@dirrmtry share/applications
+@dirrmtry etc/xdg/pcmanfm/LXDE
+@dirrmtry etc/xdg/pcmanfm
+@dirrmtry etc/xdg/lxsession/LXDE
+@dirrmtry etc/xdg/lxsession
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 William Grzybowski freebsd_committer freebsd_triage 2013-06-22 12:51:00 UTC
State Changed
From-To: open->closed

Committed. Thanks!