summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-05-25 15:39:46 +0000
committerOlivier Blin <oblin@mandriva.com>2007-05-25 15:39:46 +0000
commit1d37bfdbbe874abd6dcb5563eea19f531de09e1c (patch)
tree74845e43ed8fa59c7aaafd1a87efaa6b0c83c228 /Makefile
parentc6ba983db7d5a82ee63599e775be0f8211447c72 (diff)
downloaddrakx-net-1d37bfdbbe874abd6dcb5563eea19f531de09e1c.tar
drakx-net-1d37bfdbbe874abd6dcb5563eea19f531de09e1c.tar.gz
drakx-net-1d37bfdbbe874abd6dcb5563eea19f531de09e1c.tar.bz2
drakx-net-1d37bfdbbe874abd6dcb5563eea19f531de09e1c.tar.xz
drakx-net-1d37bfdbbe874abd6dcb5563eea19f531de09e1c.zip
sync with 2007.1 (because of SVN loss)2007.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..77a9eca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+NAME = drakx-net
+VERSION = 0.12
+
+DESTDIR=
+libdir=/usr/lib
+bindir=/usr/bin
+sbindir=/usr/sbin
+desktopdir=/usr/share/applications
+autostartdir=/usr/share/autostart
+autostartgnomedir=/usr/share/gnome/autostart
+xinitdir=/etc/X11/xinit.d
+iconsdir=/usr/lib/libDrakX/icons
+pixmapsdir=/usr/share/libDrakX/pixmaps
+pamdir=/etc/pam.d
+consoleappsdir=/etc/security/console.apps
+
+BIN_TOOLS= net_applet
+SBIN_TOOLS=drakconnect drakfirewall drakgw drakhosts drakids drakinvictus draknetprofile draknfs drakproxy drakroam draksambashare drakvpn net_monitor
+
+all:
+ (find lib -name '*.pm'; find bin -type f) | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'
+ make -C po
+
+check:
+ @for p in `find lib -name *.pm`; do perl -cw -I$(libdir)/libDrakX $$p || exit 1; done
+ @for p in bin/*; do perl -cw $$p || exit 1; done
+
+install:
+ install -d $(DESTDIR){$(libdir),$(bindir),$(sbindir),$(desktopdir),$(autostartdir),$(autostartgnomedir),$(xinitdir),$(iconsdir),$(pixmapsdir),$(pamdir),$(consoleappsdir)}
+ cp -a lib/* $(DESTDIR)$(libdir)/libDrakX/
+ find $(DESTDIR) -name .perl_checker -exec rm {} \;
+ (cd bin; \
+ install -m755 $(BIN_TOOLS) $(DESTDIR)$(bindir); \
+ install -m755 $(SBIN_TOOLS) $(DESTDIR)$(sbindir); \
+ )
+ install -m755 scripts/net_applet.xinit $(DESTDIR)$(xinitdir)/70net_applet
+ install -m644 $(wildcard data/*.desktop) $(DESTDIR)$(desktopdir)
+ install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
+ install -m644 $(wildcard data/pixmaps/*.png) $(DESTDIR)$(pixmapsdir)
+ install -m644 config/drakroam.pamd $(DESTDIR)$(pamdir)/drakroam
+ install -m644 config/drakroam.console $(DESTDIR)$(consoleappsdir)/drakroam
+ ln -s consolehelper $(DESTDIR)$(bindir)/drakroam
+ perl -pe 's/\s+--force//g' $(DESTDIR)$(desktopdir)/net_applet.desktop > $(DESTDIR)$(autostartdir)/net_applet.desktop
+ perl -pe 's/.*X-KDE.*\n//;s/\s+--force//g' $(DESTDIR)$(desktopdir)/net_applet.desktop > $(DESTDIR)$(autostartgnomedir)/net_applet.desktop
+ make -C po install
+
+clean:
+ make -C po clean