On Mon, Jul 31, 2017 at 06:53:14PM +0200, Klemens Nanni wrote:
> Stumbled across /usr/local/lib/systemd/ the other day, so here's the
> clean up.
> 
> The configure script has no knob for it so simply remove the files in
> post-install.
> 
> `make plist' works fine and also strips two old directories.
> 
> Feedback? Comments?

There are multiple instances on this in ports. They do no harm imho and may be
useful for reference.


> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/glib2-networking/Makefile,v
> retrieving revision 1.48
> diff -u -p -r1.48 Makefile
> --- Makefile  26 Jul 2017 22:45:27 -0000      1.48
> +++ Makefile  31 Jul 2017 16:58:29 -0000
> @@ -5,7 +5,7 @@ COMMENT=              network-related gio modules fo
>  GNOME_VERSION=               2.50.0
>  GNOME_PROJECT=               glib-networking
>  PKGNAME=             glib2-networking-${GNOME_VERSION}
> -REVISION=            3
> +REVISION=            4
>  
>  CATEGORIES=          net
>  
> @@ -36,5 +36,6 @@ TEST_IS_INTERACTIVE=        x11
>  
>  post-install:
>       rm ${PREFIX}/lib/gio/modules/*.{a,la}
> +     rm -rf ${PREFIX}/lib/systemd
>  
>  .include <bsd.port.mk>
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/net/glib2-networking/pkg/PLIST,v
> retrieving revision 1.20
> diff -u -p -r1.20 PLIST
> --- pkg/PLIST 8 Apr 2017 10:39:22 -0000       1.20
> +++ pkg/PLIST 31 Jul 2017 16:58:29 -0000
> @@ -2,9 +2,6 @@
>  lib/gio/modules/libgiognomeproxy.so
>  lib/gio/modules/libgiognutls.so
>  lib/gio/modules/libgiolibproxy.so
> -lib/systemd/
> -lib/systemd/user/
> -lib/systemd/user/glib-pacrunner.service
>  @bin libexec/glib-pacrunner
>  share/dbus-1/
>  share/dbus-1/services/
> @@ -31,8 +28,6 @@ share/locale/eu/LC_MESSAGES/glib-network
>  share/locale/fa/LC_MESSAGES/glib-networking.mo
>  share/locale/fi/LC_MESSAGES/glib-networking.mo
>  share/locale/fr/LC_MESSAGES/glib-networking.mo
> -share/locale/fur/
> -share/locale/fur/LC_MESSAGES/
>  share/locale/fur/LC_MESSAGES/glib-networking.mo
>  share/locale/gd/LC_MESSAGES/glib-networking.mo
>  share/locale/gl/LC_MESSAGES/glib-networking.mo
> 

-- 
Antoine

Reply via email to